Bug 177432 - When elements are moved during a drag start, the drag ends instantly
Summary: When elements are moved during a drag start, the drag ends instantly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2017-09-25 08:37 PDT by joeymc12321
Modified: 2017-10-02 15:25 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description joeymc12321 2017-09-25 08:37:30 PDT
When adding an element to the DOM or styling that causes the element being dragged to move at the same time that the drag is starting, the drag ends instantly. This makes it impossible to introduce new items as dragTargets if they potentially move the element being dragged.
Comment 1 joeymc12321 2017-09-25 10:09:46 PDT
This bug is also mentioned here: https://github.com/react-dnd/react-dnd-html5-backend/issues/18
Comment 2 Wenson Hsieh 2017-09-25 10:11:31 PDT
Could you provide a reduced test case showing this? It's true that we bail if the "dragstart" handler mutates the DOM in a way that destroys the drag source element's RenderObject, but my understanding is that just moving the element should not abort the drag session altogether.

Additionally, it might be interesting to know whether this reproduces on iOS (I would expect it to also reproduce, which would indicate this is an issue at the WebCore layer rather than the client layers.)
Comment 3 Radar WebKit Bug Importer 2017-10-02 15:25:22 PDT