Skip to content

script: Don't fire pointer events for touch compatibility mouse events - #48701

Merged
yezhizhen merged 2 commits into
servo:mainfrom
yezhizhen:pe
Oct 9, 2026
Merged

yezhizhen merged 2 commits into
servo:mainfrom
yezhizhen:pe

Conversation

@yezhizhen

@yezhizhen yezhizhen commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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 #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

Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
@yezhizhen
yezhizhen requested a review from mrobinson October 7, 2026 10:20
@yezhizhen yezhizhen added the B-high-value Represents work that would have a big impact label Oct 7, 2026
@yezhizhen
yezhizhen marked this pull request as ready for review October 8, 2026 01:24
@yezhizhen
yezhizhen requested a review from gterzian as a code owner October 8, 2026 01:24
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 8, 2026

@Narfinger Narfinger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok to me but I am not an expert.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 8, 2026
@yezhizhen
yezhizhen added this pull request to the merge queue Oct 9, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 9, 2026
Merged via the queue into servo:main with commit 3e72b88 Oct 9, 2026
40 checks passed
@yezhizhen
yezhizhen deleted the pe branch October 9, 2026 06:21
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 9, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B-high-value Represents work that would have a big impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Same Pointer events are fired multiple times for a single touch tap Intermittent failure in /webdriver/tests/classic/perform_actions/pointer_pen.py

3 participants