Gecko:CSSScrollSnapping: Difference between revisions

Line 31: Line 31:
Similarly for 'scroll-snap-horizontal'.
Similarly for 'scroll-snap-horizontal'.


UAs can decide which scrolling mechanisms are subject to scroll snapping. For example, a UA might apply scroll snapping to touch-based panning and keyboard-driven scrolling but not scrollbar thumb dragging. Script-driven scrolling (e.g. setting <tt>scrollLeft</tt> or <tt>scrollTop</tt>) is never affected by scroll snapping.
UAs should apply scroll snapping to all user scroll gestures (including keyboard, scrollbars, etc). Script-driven scrolling (e.g. setting <tt>scrollLeft</tt> or <tt>scrollTop</tt>) is never affected by scroll snapping.


The details of snapping behavior (physics) are up to the UA.
The details of snapping behavior (physics) are up to the UA.
1,295

edits