Bug 262661 - [PointerEvents] preventsCompatibilityMouseEvents is not being reset on Pointer[Up/Cancel] dispatch
Summary: [PointerEvents] preventsCompatibilityMouseEvents is not being reset on Pointe...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Abrar Rahman Protyasha
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-04 15:47 PDT by Abrar Rahman Protyasha
Modified: 2023-10-05 13:01 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abrar Rahman Protyasha 2023-10-04 15:47:51 PDT
As described in https://www.w3.org/TR/pointerevents/#mapping-for-devices-that-support-hover, whenever a UA dispatches a pointer event:

> "6. If the pointer event dispatched was pointerup or pointercancel, clear the PREVENT MOUSE EVENT flag for this pointerType."

We make sure to implement the earlier case (#4) of setting the PREVENT MOUSE EVENT flag if the pointer event dispatched was pointerdown and the event was canceled, but not this case. Let's fix that.
Comment 1 Radar WebKit Bug Importer 2023-10-04 15:48:00 PDT
<rdar://problem/116490176>
Comment 2 Abrar Rahman Protyasha 2023-10-04 15:54:51 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18657