WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
222632
pointercancel event not fired on drag start
https://bugs.webkit.org/show_bug.cgi?id=222632
Summary
pointercancel event not fired on drag start
Devon Govett
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-03-09 16:08:20 PST
<
rdar://problem/75239775
>
alexreardon
Comment 2
2024-09-15 22:07:40 PDT
I just ran into this bug too. The drag and drop spec also calls out that a "pointercancel" should come straight after a "dragstart"
https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug