On Thu, Oct 30, 2014 at 1:55 PM, Robert O'Callahan <rob...@ocallahan.org> wrote: > On Fri, Oct 31, 2014 at 5:35 AM, Jonas Sicking <jo...@sicking.cc> wrote: >> >> Note that I can't find *any* functions in the spec which are descried >> as asynchronous. >> >> I can only find things like, for example, element.scrollBy(), which is >> defined in terms of reading scrollTop/scrollLeft, adding the value the >> arguments passed to the function, and then calling element.scroll(). >> Such an implementation strategy would result in ugly UI which would >> not satisfy the use cases that were brought up in the other thread. > > http://dev.w3.org/csswg/cssom-view/#concept-smooth-scroll > Scripted smooth scrolls let the user-agent control the timing of the scroll. > Thus, we can make them as asynchronous as we want.
That doesn't cover use cases like: "Adjust the scroll position down by 10 pixels atomically with the next reflow since I just added a 10 pixel element at the top of the page" Please see the text from the previous thread that Kip quoted, and the API that he linked to. Another use case that I know we've talked about is supporting drag'n'drop where the user drags something to the bottom of the screen in order to have the screen scoll up so that the content can be dropped further down. For example drag'n'drop of icons on the homescreen. Has that usecase been verified to be solved by the current API? / Jonas _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform