WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
202287
pointerdown events are not fired for clicks that follow a drag&drop.
https://bugs.webkit.org/show_bug.cgi?id=202287
Summary
pointerdown events are not fired for clicks that follow a drag&drop.
Aurélien Roy
Reported
2019-09-26 14:12:32 PDT
Bug confirmed on stable releases of : - Safari 13.0.0 / Mojave 10.14.6 - Safari 13.0.1 / Mojave 10.14.6 Overview : "pointerdown" events are not fired for clicks that follow a drag&drop. How to reproduce : - Add an event listener to a draggable DOM element for "pointerdown" event. - If you click on it, the event will fre. - Drag the element and release it. - The next time you will click on it, "pointerdown" event won't fire. - Following clicks will work again until the next drag&drop. Codepen :
https://codepen.io/Tlokuus/pen/JjPVrLy
This causes some commonly used JS libraries do not work propertly, for instance :
https://github.com/SortableJS/Sortable/issues/1571
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-09-26 19:53:04 PDT
<
rdar://problem/55768441
>
Antoine Quint
Comment 2
2019-09-30 08:06:45 PDT
The "mousedown" and "click" events are fired as expected, odd!
Antoine Quint
Comment 3
2019-10-01 04:40:14 PDT
We're actually dispatching a "pointermove" event instead of a "pointerdown" event because we believe the pointer is still pressed in PointerCaptureController::pointerEventForMouseEvent(): // We're already active and getting another mousedown, this means that we should dispatch // a pointermove event and let the button state show the newly depressed button. if (type == names.mousedownEvent && capturingData.pointerIsPressed) return PointerEvent::create(names.pointermoveEvent, button, mouseEvent); We must not clear the pointerIsPressed state during drag-and-drop.
lvegerano422
Comment 4
2020-03-03 10:38:54 PST
Anyone knows the status of this bug? This is very alive in Safari 13.0.5
Binyamin
Comment 5
2020-08-11 22:30:27 PDT
This bug is breaking compatibility to different libraries, for example
https://github.com/SortableJS/Sortable/issues/1571
George Zizka
Comment 6
2020-11-08 10:43:58 PST
This issue still persist even in Safari 14 Preview
Rob Snow
Comment 7
2022-05-12 10:04:14 PDT
Any status? this is still present in 15.4 and is causing us grief in our library react-aria
JC Franco
Comment 8
2024-02-12 23:10:34 PST
I am able to reproduce with v17.2.1 (19617.1.17.11.12).
Tomas Blesa
Comment 9
2024-08-31 03:42:55 PDT
The bug is still there in 17.6 (19618.3.11.11.5)
alexreardon
Comment 10
2024-09-16 17:17:46 PDT
I raised a (duplicate) bug for this issue, not realising a bug report already existed:
https://bugs.webkit.org/show_bug.cgi?id=279749
Ahmad Saleem
Comment 11
2024-09-24 03:32:38 PDT
***
Bug 279749
has been marked as a duplicate of this bug. ***
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