Repository navigation
[Web] Report the hovering pointer's type in Hover gesture events - #4631
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
Description
On web,
HoverGestureHandlerreported pointer type mouse for a stylus. The base handler stores the pointer type only inonPointerDown, and a hover never sees apointerdown, so the default stayed. The value also never resets, so after a pen or finger touched the view, every later hover reported that type instead.Test plan
Hover a pen over a
useHoverGestureview in Chrome:onBegin,onActivateandonUpdatereportpointerType: STYLUSwith stylus data, a mouse reportsMOUSE. Checked on a Galaxy S24 with S Pen and on desktop Chrome with CDP pen events.