Skip to content

Commit 9772813

Browse files
committed
[css-scroll-snap-2] Add SnapEvent definition
SnapEvent defines the interface of scroll-snap-related JavaScript events, snapchanged and snapchanging. Patchset 3: Add more details.
1 parent 0fe4af6 commit 9772813

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

css-scroll-snap-2/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,17 @@ Snap Events {#snap-events}
286286
<th><dfn for="snapchanged" event>snapchanged</dfn></th>
287287
<td>{{SnapEvent}}</td>
288288
<td>scroll containers</td>
289-
<td>Fired at the element or {{Document}} at the end of a scroll (before {{scrollend}} events)
290-
or after a <a href="https://drafts.csswg.org/css-scroll-snap-1/#re-snap">layout snap</a>.</td>
289+
<td>Fired at the scrolling element or {{Document}} at the end of a scroll (before a {{scrollend}} event)
290+
or after a <a href="https://drafts.csswg.org/css-scroll-snap-1/#re-snap">layout snap</a>
291+
if the element that the scrolling element or Document is snapped to changed.</td>
291292
</tr>
292293
<tr>
293294
<th><dfn for="snapchanging" event>snapchanging</dfn></th>
294295
<td>{{SnapEvent}}</td>
295296
<td>snap containers</td>
296-
<td>Fired at the element or {{Document}} during scrolling (similar to {{scroll}} events).
297-
Fired before a {{snapchanged}} event (if one fires).</td>
297+
<td>Fired at the scrolling element or {{Document}} during scrolling (similar to {{scroll}} events),
298+
(before a {{snapchanged}} event, if one fires) if the scrolling will lead to a change in the
299+
element that the scrolling element or Document is snapped to.</td>
298300
</tr>
299301
</tbody>
300302
</table>

0 commit comments

Comments
 (0)