-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Interop: major browsers fire click/auxclick events differently for chorded buttons #530
Comments
FYI, it looks like Safari 18.2 Beta will support |
While it's not particularly common on the web to have multi-button interactions, there are many games where it is expected that there is a stateful |
One important point is that any click-like event fired before the very last button-up action has no corresponding So the spec needs to clarify that a click does not always have a |
This CL adds a WPT for click-like events from chorded buttons, which is currently being discussed in PEWG as an Interop problem: w3c/pointerevents#530 The CL also fixes a behind-a-flag crack in Chromium. The crack prevented firing of click-like events with the chorded buttons when ClickToCapturedPointer is enabled. This is because the call to `DispatchMouseClickIfNeeded` is wrongly skipped in this case since the `pointer_event->type()` is `kPointermove` not `kPointerup`. Bug: 40851596 Change-Id: I11606ed8f709f08aaa2d8aba3ebaeb07f26bbc1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059955 Reviewed-by: Robert Flack <flackr@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395404}
This CL adds a WPT for click-like events from chorded buttons, which is currently being discussed in PEWG as an Interop problem: w3c/pointerevents#530 The CL also fixes a behind-a-flag crack in Chromium. The crack prevented firing of click-like events with the chorded buttons when ClickToCapturedPointer is enabled. This is because the call to `DispatchMouseClickIfNeeded` is wrongly skipped in this case since the `pointer_event->type()` is `kPointermove` not `kPointerup`. Bug: 40851596 Change-Id: I11606ed8f709f08aaa2d8aba3ebaeb07f26bbc1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059955 Reviewed-by: Robert Flack <flackr@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395404}
This CL adds a WPT for click-like events from chorded buttons, which is currently being discussed in PEWG as an Interop problem: w3c/pointerevents#530 The CL also fixes a behind-a-flag crack in Chromium. The crack prevented firing of click-like events with the chorded buttons when ClickToCapturedPointer is enabled. This is because the call to `DispatchMouseClickIfNeeded` is wrongly skipped in this case since the `pointer_event->type()` is `kPointermove` not `kPointerup`. Bug: 40851596 Change-Id: I11606ed8f709f08aaa2d8aba3ebaeb07f26bbc1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059955 Reviewed-by: Robert Flack <flackr@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395404}
We just landed a tentative WPT: |
… with chorded buttons., a=testonly Automatic update from web-platform-tests [Interop] WPT and fix for click dispatch with chorded buttons. This CL adds a WPT for click-like events from chorded buttons, which is currently being discussed in PEWG as an Interop problem: w3c/pointerevents#530 The CL also fixes a behind-a-flag crack in Chromium. The crack prevented firing of click-like events with the chorded buttons when ClickToCapturedPointer is enabled. This is because the call to `DispatchMouseClickIfNeeded` is wrongly skipped in this case since the `pointer_event->type()` is `kPointermove` not `kPointerup`. Bug: 40851596 Change-Id: I11606ed8f709f08aaa2d8aba3ebaeb07f26bbc1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059955 Reviewed-by: Robert Flack <flackr@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395404} -- wpt-commits: fae8dd06efde90fd0b43ca757b6e691e7bbe55fa wpt-pr: 49656
… with chorded buttons., a=testonly Automatic update from web-platform-tests [Interop] WPT and fix for click dispatch with chorded buttons. This CL adds a WPT for click-like events from chorded buttons, which is currently being discussed in PEWG as an Interop problem: w3c/pointerevents#530 The CL also fixes a behind-a-flag crack in Chromium. The crack prevented firing of click-like events with the chorded buttons when ClickToCapturedPointer is enabled. This is because the call to `DispatchMouseClickIfNeeded` is wrongly skipped in this case since the `pointer_event->type()` is `kPointermove` not `kPointerup`. Bug: 40851596 Change-Id: I11606ed8f709f08aaa2d8aba3ebaeb07f26bbc1f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6059955 Reviewed-by: Robert Flack <flackr@chromium.org> Auto-Submit: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1395404} -- wpt-commits: fae8dd06efde90fd0b43ca757b6e691e7bbe55fa wpt-pr: 49656
Click-like events from chorded buttons differ significantly between major browsers.
Repro: https://codepen.io/mustaqahmed/full/QwLwdpq
click
for L-release,auxclick
for M-release).click
for L-release,auxclick
for M-release).click
event (and never anauxclick
), only for the first button release.I know this has been discussed in #93 where we concluded that this belongs to the UIEvent spec. Things have shifted quite a bit since then:
click
andauxclick
are now PointerEvents, and as per this years TPAC we (PEWG) should be owning this spec.The text was updated successfully, but these errors were encountered: