Skip to content

webdriver: make pen inputs behave like mouse#42485

Open
webbeef wants to merge 1 commit intoservo:mainfrom
webbeef:webdriver-pen-is-touch
Open

webdriver: make pen inputs behave like mouse#42485
webbeef wants to merge 1 commit intoservo:mainfrom
webbeef:webdriver-pen-is-touch

Conversation

@webbeef
Copy link
Copy Markdown
Contributor

@webbeef webbeef commented Feb 9, 2026

This aligns with the expectations in tests/wpt/tests/pointerevents/pointerevent_attributes.html that classifies pen and mouse as 'hover' pointers, and touch as 'non hover'.

Testing: Green try run at https://github.com/webbeef/servo/actions/runs/21832655621

This aligns with the expectations in tests/wpt/tests/pointerevents/pointerevent_attributes.html that
classifies pen and mouse as 'hover' pointers, and touch as 'non hover'.

Signed-off-by: webbeef <[email protected]>
@webbeef webbeef requested a review from yezhizhen as a code owner February 9, 2026 18:23
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 9, 2026
@webbeef
Copy link
Copy Markdown
Contributor Author

webbeef commented Feb 9, 2026

cc @yezhizhen

Copy link
Copy Markdown
Member

@yezhizhen yezhizhen left a comment

Choose a reason for hiding this comment

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

Let's revert this part in #41290 (review) and get that merged first, so that we can see the impact of this clearly.

This is like #41819: there is no need to rush this. We don't support pen embedder type right now anyway.

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 10, 2026
@webbeef
Copy link
Copy Markdown
Contributor Author

webbeef commented Feb 12, 2026

The distinction is described in https://w3c.github.io/pointerevents/#mapping-for-devices-that-do-not-support-hover in terms of supporting hover or not. I checked online and electronic pencils can actually support hover, sending events without physical contact with the screen / drawing area.

@yezhizhen
Copy link
Copy Markdown
Member

yezhizhen commented Feb 12, 2026

I checked online and electronic pencils can actually support hover, sending events without physical contact with the screen / drawing area.

This is true and have been the case for many years. But my concern is always the lack of embedder pen type.

Anyway, can you rebase and update expectation first?

@webbeef
Copy link
Copy Markdown
Contributor Author

webbeef commented Feb 12, 2026

Try run after rebase: https://github.com/webbeef/servo/actions/runs/21935044148/job/63351784939

At least the regression in /pointerevents/pointerup_after_pointerdown_target_removed.html?pen requires investigation.

@webbeef
Copy link
Copy Markdown
Contributor Author

webbeef commented Feb 14, 2026

But my concern is always the lack of embedder pen type.

It looks like this will be available in winit 0.31 : https://github.com/rust-windowing/winit/blob/f98ccf8efc5e3f6dd3e31b705178603f6556d316/winit-core/src/event.rs#L1057

Maybe we should wait for that and then figure out what that means for our input pipeline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-code-changes Changes have not yet been made that were requested by a reviewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants