On 25.05.2014 05:00, Jonas Sicking wrote:
I guess what I'm arguing is that smooth-scrolling vs. instant
scrolling shouldn't be a per-element CSS property, but rather a
per-callsite API argument.

It seems to me that it will be the case that for a given element
you'll sometimes want to do smooth scrolling operations and sometimes
instant operations.

For example in a list of emails you might want to enable
smooth-scrolling down 50 emails, but if additional emails come in, you
want to be able to add to the top of the list and atomically "add to
scroll scroll position" to compensate for the added elements.

FWIW, XUL scrollboxes support both smooth scrolling (JS implementation using requestAnimationFrame) and instant scrolling. The tabstrip on Firefox desktop uses both methods. Which one is used varies from case to case and is controlled by the callsites. I agree that a CSS property doesn't satisfy this use case well.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to