A pesky little bug I discovered while building darkly.art. Sometimes, an extra pen event with 0.5 pressure would appear at the end of a stroke. Screenshot before and after the fix:
https://issues.chromium.org/action/issues/497284918/attachments/80276193
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +1 |
+tluk for secondary approval (fangzhoug is OOO)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ozone/wayland: Don't fold tablet tool buttons into pointer motion flags
Some compositors warp the seat cursor to follow a tablet tool. Sway emits
a wl_pointer.motion 5us after zwp_tablet_tool_v2.up(), and
OnPointerMotionEvent folded tablet_tool_buttons_ into that event's flags.
The tool's button state is still latched at that point, because its up
sits in frame_data_ until the tablet frame arrives, so the mouse move
went out claiming a button was held that the mouse does not have held.
In Blink this surfaces as a pointerType:"mouse" sample with pointerId 1
and the spec-default pressure:0.5, injected between the last real pen
sample and pointerup -- the pointer type changing mid-stroke, as reported.
The tool's own button state already reaches Aura correctly through
OnTabletToolMotion(), which emits kMouseDragged with real PointerDetails.
Verified on an ILITEK ILIT2901 digitizer under Sway: a stroke now logs no
pointer type changes and no mouse-typed samples.
R=thomasa...@chromium.org
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |