-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 While beginning implementation I noticed that there is smooth scrolling functionality already implemented within ScrollFrameHelper::AsyncScroll, using simple splines via nsSMILKeySpline. This smooth scrolling behavior is used internally and not exposed with XPCOM or WebIDL bindings.
I would like feedback to determine if this same routine should be re-cycled, updated to match the proposed movement model, or kept as-is as a separate implementation for these internal use-cases. Would it be helpful if I mocked up a visualization to compare the kind of movement it has to the movement model I proposed for the smooth scroll behavior? - - Kip On 2014-06-10, 12:57 PM, Kip Gilbert wrote: > The bug has been split up to track individual parts of the > implementation: > > Bug 1010538 - Implement CSSOM-View scroll-behavior CSS property Bug > 1022818 - Implement CSSOM-View smooth scrolling DOM Methods Bug > 1022825 - Implement CSSOM-View smooth scrolling movement for APZ > > My intent is to first implement minimal support for smooth > scrolling dependent on APZ with DOM Methods (Bug 1022818 and Bug > 1022825). This would be followed by implementing the CSS > property. > > If there is enough demand to land smooth scrolling on other > platforms prior to APZ support, then a new bug will be created to > track a non-APZ-dependent implementation. > > - Kip > > On 2014-05-22, 1:50 PM, Kip Gilbert wrote: >> Summary: > >> CSSOM-View defines a new css property, 'scroll-behavior'. When >> set to 'smooth', scrolling boxes will be scrolled in a smooth >> fashion using a user-agent-defined function. > >> Implementing this property will enable more fluid scrolling >> interfaces consistent with modern UI paradigms without needing >> to update the position manually on a frame-by-frame basis in >> Javascript. In much the same way as APZ's fling gestures, the >> fluid scrolling will take over the scroll position updates when >> CSSOM methods or navigation set the scroll position. > >> Other effects such as smooth-scroll-snapping can be built upon >> this property by setting the scroll position for a smooth >> scrolling box at the end of a dragging event. This is beneficial >> to applications such as the B2G home screen and image carousels. > >> Bug: > >> https://bugzilla.mozilla.org/show_bug.cgi?id=1010538 > >> Link to standard: > >> http://dev.w3.org/csswg/cssom-view/#smooth-scrolling:-the-%27scroll-behavior%27-property > >> > > >> Platform coverage: > >> Android, Desktop, Firefox OS > >> This functionality is beneficial on all platforms. The >> implementation fits naturally within the APZ classes; however, >> APZ may not be available for some time outside of B2G. I would >> like to gauge the demand for this functionality outside of B2G to >> determine if it should be implemented independently of APZ and >> land earlier on other platforms. > >> Estimated or target release: > >> TBD > >> Preference behind which this will be implemented: > >> layout.css.scroll-behavior.enabled > > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTl4mPAAoJEHziBT1mB5A7CFYH/i199IyB9p+ckvV7IpQ88JY9 nsWcsdeF4+DHAElNZQoeq6Q5BTzWg4/TVNspQMLwGiZVzE0dy5M35imLMAPE/2ih fcreDzGe4jAd3LoUb04/Voxob0aEB1wvhpd8DPIUqP1mb1QL2V5HuU5v+y99hgot ZKL/cOHbg5KgAZk+smQutVLKI2ruAxvUveFVZBvLZ+n+1mz4BmlhE16DDKdSOcwk AE7PpM7SvAHc2sl/hVOqsCBkPmQ2DiJv7hxQmsq1HZCXwjNQAbhV9bqN2R4yBRNO yzDua59+eyIMa4toyLxC69QQGhz1bXxDC7RmieSUMoyx0Yxk408XV0omwNFgjvU= =7eEN -----END PGP SIGNATURE----- _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform