Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap Events #333

Open
DavMila opened this issue Apr 5, 2024 · 0 comments
Open

Snap Events #333

DavMila opened this issue Apr 5, 2024 · 0 comments

Comments

@DavMila
Copy link

DavMila commented Apr 5, 2024

WebKittens

No response

Title of the spec

CSS Scroll Snap 2

URL to the spec

https://drafts.csswg.org/css-scroll-snap-2/#snap-events

URL to the spec's repository

https://github.com/w3c/csswg-drafts/tree/main/css-scroll-snap-2

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

w3ctag/design-reviews#943

Mozilla standards-positions issue URL

mozilla/standards-positions#1008

WebKit Bugzilla URL

No response

Radar URL

No response

Description

CSS scroll snap points are often used as a mechanism to create scroll interactive "selection" components, giving authors control over what areas of its content a scrolling container can settle.This proposal adds 2 JavaScript events, snapchanging, and snapchanged, which fire in response to the scrolling/snapping of containers which snap.

snapchanging (explainer) is a JavaScript event that aims to let the web page know, as early as possible, that a scrolling operation will result in a change in the element the container being scrolled is snapped to.
snapchanged (explainer) is a JavaScript event that fires when a scrolling operation is complete and the scroller has snapped to a different element than it was previously snapped to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants