On Fri, Oct 31, 2014 at 11:32 AM, Jonas Sicking <jo...@sicking.cc> wrote:
> Another use case that's not well supported by the current spec text is > "smoothly scoll down by 50 pixels". The way you'd do that is to call > element.scrollBy({ top: 50, behavior: "smooth" }). However that > function call is defined as synchronously getting .scrollLeft from the > main thread, which means that you might perform an entirely different > scroll. > That's true. I guess you want a third behavior for scrollBy, say "async", to handle this case. Oddly enough this actually matches a behavior we have internally. I believe that would handle the other cases you mentioned too. Rob -- oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo owohooo osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o oioso oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo owohooo osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro ooofo otohoeo ofoioroeo ooofo ohoeololo. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform