LivelyKernel / lively.morphic

An implementation of the Morphic user interface framework for lively.next.
13 stars 2 forks source link

[rendering] jerky scrolling #88

Closed rksm closed 7 years ago

rksm commented 7 years ago

The way we apply scrolling to DOM nodes has the side effect of making scrolling via trackpads very un-smooth, especially on Firefox. This is b/c trackpads / the OS emits a continues stream of scroll events, depending on the OS this can last longer then the scroll gesture itself. This usually makes for very smooth scrolling. When we update the DOM node during this process, however, setting the scrollLeft/Top values has the effect of stopping that smooth scroll event stream. Fix that!