Skip to content

Commit

Permalink
Add scroll snap events (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Oct 29, 2024
1 parent a73de46 commit e4c5805
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/scroll-snap-events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Scroll snap events
description: The `scrollsnapchanging` and `scrollsnapchange` events fire when a scroll gesture changes the selected scroll snap target.
spec: https://drafts.csswg.org/css-scroll-snap-2/#scrollsnapchange-and-scrollsnapchanging
group: scrolling
compat_features:
- api.Document.scrollsnapchange_event
- api.Document.scrollsnapchanging_event
- api.Element.scrollsnapchange_event
- api.Element.scrollsnapchanging_event
- api.SnapEvent
- api.SnapEvent.SnapEvent
- api.SnapEvent.snapTargetBlock
- api.SnapEvent.snapTargetInline
- api.Window.scrollsnapchange_event
- api.Window.scrollsnapchanging_event
20 changes: 20 additions & 0 deletions features/scroll-snap-events.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated from: scroll-snap-events.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "129"
chrome_android: "129"
edge: "129"
compat_features:
- api.Document.scrollsnapchange_event
- api.Document.scrollsnapchanging_event
- api.Element.scrollsnapchange_event
- api.Element.scrollsnapchanging_event
- api.SnapEvent
- api.SnapEvent.SnapEvent
- api.SnapEvent.snapTargetBlock
- api.SnapEvent.snapTargetInline
- api.Window.scrollsnapchange_event
- api.Window.scrollsnapchanging_event

0 comments on commit e4c5805

Please sign in to comment.