Skip to content

Conversation

@mrobinson
Copy link
Member

@mrobinson mrobinson commented Sep 24, 2025

Mouse button events are sent in CSSPixel coordinates, but these need to
so they need to converted into device coordinates when creating an input
event for them. This isn't an issue for automated test because they
always use a scale factor of 1. This is a problem when running
interactively and not in headless mode.

Testing: This isn't really testable in an automated way, but is very obviously
causes tests to pass when run with WebDriver and without headless mode.
Fixes: Part of #38087.

…actor

Mouse button events are sent in CSSPixel coordinates, but these need to
so they need to converted into device coordinates when creating an input
event for them. This isn't an issue for automated test because they
always use a scale factor of 1. This is a problem when running
interactively and not in headless mode.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@mrobinson mrobinson requested a review from atbrakhi as a code owner September 24, 2025 15:54
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 24, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 24, 2025
@yezhizhen
Copy link
Member

This should fix #38087 for all platforms except x11/windows.

@mrobinson mrobinson added this pull request to the merge queue Sep 24, 2025
@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 Sep 24, 2025
@mrobinson
Copy link
Member Author

@yezhizhen Thanks for the link to the bug.

Merged via the queue into servo:main with commit e4f3705 Sep 24, 2025
29 checks passed
@mrobinson mrobinson deleted the mouse-button-event-hidpi branch September 24, 2025 18:28
@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 Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants