Repository navigation
script: Don't fire pointer events for touch compatibility mouse events - #48701
Merged
Merged
Conversation
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
yezhizhen
marked this pull request as ready for review
October 8, 2026 01:24
Narfinger
approved these changes
Oct 8, 2026
Narfinger
left a comment
Contributor
There was a problem hiding this comment.
This looks ok to me but I am not an expert.
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
servo#48701) For reviewers, pls disable whitespace diff. We were wrongly having both `pointerType: "touch"/"pen"` and `pointerType: "mouse"` PE generated from compat mouse events. The newly introduced `is_compatibility_event_for_touch` for mousebutton is similar to the existing one for mousemove introduced in servo#40637. Testing: Many new passing wpt. The new failing one related to pen was just lucky to be hit by pointermove from that generated by compat mouse events earlier. Fixes: servo#48619 Fixes: servo#47618 --------- Signed-off-by: Euclid Ye <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For reviewers, pls disable whitespace diff.
We were wrongly having both
pointerType: "touch"/"pen"andpointerType: "mouse"PE generated from compat mouse events.The newly introduced
is_compatibility_event_for_touchfor mousebutton is similar to the existing one for mousemove introduced in #40637.Testing: Many new passing wpt. The new failing one related to pen was just lucky to be hit by pointermove from that generated by compat mouse events earlier.
Fixes: #48619
Fixes: #47618