Bug 222632 - pointercancel event not fired on drag start
Summary: pointercancel event not fired on drag start
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 14
Hardware: Unspecified macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-02 16:07 PST by Devon Govett
Modified: 2023-09-22 09:55 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devon Govett 2021-03-02 16:07:08 PST
The pointercancel event should be fired when starting a drag on an element with `draggable="true"`. This is made explicit in the spec: https://www.w3.org/TR/pointerevents2/#the-pointercancel-event and Firefox and Chrome behave this way. Safari on macOS does not.

Steps to reproduce:

1. Open https://codepen.io/devongovett/pen/MWbXYgR in Safari on macOS.
2. Mouse down on the button. Notice that it turns red due to pointerdown being fired.
3. Drag the button. Notice that it stays red due to pointercancel not being fired.
4. Open the example in Chrome and Firefox and perform the above steps. Notice that the button turns green on drag due to pointercancel being fired.

The behavior also appears to be correct in Safari on iOS.
Comment 1 Radar WebKit Bug Importer 2021-03-09 16:08:20 PST
<rdar://problem/75239775>