w3c / w3c/csswg-drafts

[css-scroll-snap-1] Panning gesture should be treated as relative for last scroll direction.

Open
#12,840 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Edits Needs Testcase (WPT)
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

In css-scroll-snap-1, absolute scrolls were defined to include a panning gesture released without momentum. This would lead to the scroll direction not changing while panning up/down which doesn't make much sense as from a user perspective it is a relative scroll and the user would expect it to show/hide scroll direction based ui while panning.

I think we should include panning with and without momentum as relative scrolls as this makes the most sense for all of the other implications suggested in #12394 and figure out if / how to change the snapping behavior for this special case. E.g. maybe the end of a relative scroll includes a direction hint as to whether the scroll should continue in that direction or target the end location?

@tabatkins @tursunova

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the css-scroll-snap-1 definition of absolute scrolls and review the implications discussed in issue #12394. Determine how panning with and without momentum should be classified and how snapping should behave, then update the specification so the chosen direction and end behavior are explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.