Summary: | pointerdown events are not fired for clicks that follow a drag&drop. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aurélien Roy <aurelien_roy> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | 7raivis, b.houdusse, bumblebee.zizka, graouts, graouts, hi, jc.dafko, lvegerano422, rsnow, seva, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Mac | ||
OS: | macOS 10.14 |
Description
Aurélien Roy
2019-09-26 14:12:32 PDT
The "mousedown" and "click" events are fired as expected, odd! 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. Anyone knows the status of this bug? This is very alive in Safari 13.0.5 This bug is breaking compatibility to different libraries, for example https://github.com/SortableJS/Sortable/issues/1571 This issue still persist even in Safari 14 Preview Any status? this is still present in 15.4 and is causing us grief in our library react-aria I am able to reproduce with v17.2.1 (19617.1.17.11.12). |