Bug 134212 - Dragging aborts when source element moves away from mouse pointer.
Summary: Dragging aborts when source element moves away from mouse pointer.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 13:34 PDT by Tyler Waters
Modified: 2019-02-06 09:18 PST (History)
1 user (show)

See Also:


Attachments
Test case showing the problem. (877 bytes, text/html)
2014-06-23 13:34 PDT, Tyler Waters
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Waters 2014-06-23 13:34:18 PDT
Created attachment 233631 [details]
Test case showing the problem.

1. Open the attached file.
2. Drag the 'green' portion of the box, note that dragging works.
3. Drag the 'red' portion of the box, note that dragging does not work.

In the attached example, the 'dragstart' adds a class that makes the box 50px in height - if you start the drag in the top-50px portion (the green bit) it works as expected -- if however you start the drag in the bottom portion, the height is restricted and the 'dragend' event is fired immediately and no drag operation takes place. 

This is just on example -- moving the box by other means during the dragstart event will also raise the problem.... it seems that if the element cannot be found directly under the mouse position when the dragstart event finishes, the drag is aborted prematurely.

This works in FireFox(30) and IE(11), breaks in Chrome and Safari.
Comment 1 bgetson+bugzilla 2014-12-30 17:56:23 PST
I encountered this today and created https://code.google.com/p/chromium/issues/detail?id=445641, using http://jsfiddle.net/j9q66ja6/1/ as a demo.

Agreed that any change which moves the placement of the target element causes a problem (ex: position, padding, etc.)
Comment 2 Lucas Forschler 2019-02-06 09:18:50 PST
Mass move bugs into the DOM component.