Skip to content

Allow relative scrolls in unrelated-gesture-scroll-during-snap.html#60235

Open
denvercoder21 wants to merge 1 commit into
web-platform-tests:masterfrom
denvercoder21:allow-relative-scrolls-in-unrelated-gesture-scroll-during-snap
Open

Allow relative scrolls in unrelated-gesture-scroll-during-snap.html#60235
denvercoder21 wants to merge 1 commit into
web-platform-tests:masterfrom
denvercoder21:allow-relative-scrolls-in-unrelated-gesture-scroll-during-snap

Conversation

@denvercoder21
Copy link
Copy Markdown
Contributor

At the moment, unrelated-gesture-scroll-during-snap.html expects to snap back to 0, which can only be the case for absolute scrolls, because they don't have an intended direction.

Relative scrolls however, must have an intended direction and therefore snap forward in that intended direction.

WebDriver scroll actions can use wheel events, which are relative scrolls. Or they could use pan gestures, which will soon will be treated as relative scrolls, too: csswg-drafts #12840.

Withouth the suggested change, the test currently:

  • Firefox:
    Fails, because Firefox treats both wheel events and pan gestures as relative scrolls with an intended direction already.
  • Chrome:
    Passes, because Chrome does not yet add an intended direction to pixel-precise relative scrolls. (see InputHandler::CreateSnapStrategy)
  • Safari:
    Not tested.

See issue:
web-platform-tests/interop#1288

At the moment, unrelated-gesture-scroll-during-snap.html
expects to snap back to 0, which can only be the case for
absolute scrolls, because they don't have an intended direction.

Relative scrolls however, must have an intended direction and
therefore snap forward in that intended direction.

See issue:
web-platform-tests/interop#1288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants