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

Set mousemove and pointermove events during dragging and resizing to be excluding inputs #103

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.bs
LanWei22 authored Jun 2, 2021
commit 595e54e7b3fcb8f476eed0eb4cd211a50976fa6e
19 changes: 11 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
@@ -413,14 +413,17 @@ The user agent may delay the reporting of layout shifts after a
until such time as it is known that the event does not begin a fling or scroll
gesture.

The <a href="https://www.w3.org/TR/uievents/#event-type-mousemove">mousemove</a> events after the
<a href="https://www.w3.org/TR/uievents/#event-type-mousedown">mousedown</a> event and the
<a href="https://www.w3.org/TR/pointerevents/#the-pointermove-event">pointermove</a> events after
the <a href="https://www.w3.org/TR/pointerevents/#the-pointerdown-event">pointerdown</a> event
with no <a href="https://www.w3.org/TR/pointerevents/#the-pointercancel-event">pointercancel</a>
event fired, which trigger dragging elements around or resizing elements but not scrolling, should be excluding inputs.
The <a href="https://www.w3.org/TR/pointerevents/#the-pointercancel-event">pointercancel</a> event is
fired when touch scroll starts, so it is not an excluding input.
All the <a href="https://www.w3.org/TR/pointerevents/#the-pointermove-event">pointermove</a> events after
LanWei22 marked this conversation as resolved.
Show resolved Hide resolved
the <a href="https://www.w3.org/TR/pointerevents/#the-pointerdown-event">pointerdown</a> event are not excluding inputs,
but the follow-up <a href="https://www.w3.org/TR/pointerevents/#the-pointerup-event">pointerup</a> event
without seeing any <a href="https://www.w3.org/TR/pointerevents/#the-pointercancel-event">pointercancel</a> event
is an excluding input. The <a href="https://www.w3.org/TR/pointerevents/#the-pointercancel-event">pointercancel</a> event
is fired when the touch scroll starts, so it is not an excluding input.

All the <a href="https://www.w3.org/TR/uievents/#event-type-mousemove">mousemove</a> events between
a <a href="https://www.w3.org/TR/uievents/#event-type-mousedown">mousedown</a> event and a
<a href="https://www.w3.org/TR/uievents/#event-type-mouseup">mouseup</a> event and the
<a href="https://www.w3.org/TR/uievents/#event-type-mouseup">mouseup</a> event should be excluding inputs.

{{LayoutShift}} interface {#sec-layout-shift}
=======================================