Keeping an important scroll-snap panel from being skipped without changing the whole track
A scroll-snap track can follow its snap rules correctly and still jump past a middle panel during a long wheel, swipe, or trackpad movement. The suggested fix is narrow: keep the container's axis and strictness unchanged, and apply scroll-snap-stop: always only to the panel that must not be bypassed. With the default stop behavior, that panel can still be a landing point without interrupting a long gesture, whereas the stronger rule forces the browser to stop there during the operation. Later panels remain reachable through subsequent scroll actions. The approach suits critical content such as review steps or required decisions, and the article cautions that it does not address headers covering targets, scroll anchoring, or identical behavior across all browsers and devices.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in