Skip to content

Commit 669f10d

Browse files
committed
[cssom-1] adds explicit note about when to not emit scrollend
1 parent 5a7f2b6 commit 669f10d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cssom-view-1/Overview.bs

+2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ the following steps must be run:
359359
</ul>
360360
...then perform a <a>smooth scroll</a> of <var>box</var> to <var>position</var>. Once the position has finished updating, emit the <a event>scrollend</a> event.
361361
Otherwise, perform an <a>instant scroll</a> of <var>box</var> to <var>position</var>. After an <a>instant scroll</a> emit the <a event>scrollend</a> event.
362+
363+
Note: If the scroll position did not change as a result of the user interaction or programmatic invocation, where no translations were applied as a result, then no <a event>scrollend</a> event fires because no scrolling occured.
362364
</ol>
363365

364366
Scroll is <dfn lt="scroll completed">completed</dfn> when the scroll position has no more pending updates or translations and the user has completed their gesture. Scroll position updates include smooth or instant mouse wheel scrolling, keyboard scrolling, scroll-snap events, or other APIs and gestures which cause the scroll position to update and possibly interpolate. User gestures like touch panning or trackpad scrolling aren't complete until pointers or keys have released.

0 commit comments

Comments
 (0)