I'm running into very frustrating and unexpected drag and drop behavior in Chrome.
The :hover
pseudo-class is triggered and stuck on surrounding elements, particularly ones where the DragElement's ghost is overlapping it.
Steps to reproduce the issue:
This happens in Chrome 35, 36, and 38-beta. I also noticed this isn't happening in Plunker's Run frame with the editor, but is happening in the full windowed view (linked above). It also happens in my node-webkit
app (where I discovered this problem).
-webkit-user-drag: element;
on .box
draggable="true"
attribute on each .box
element to see if there's a difference.event.stopPropagation
on various elements, including window
Why would it be triggering :hover
on the surrounding elements? It makes absolutely no sense. I'm about to rip my hair out! :/
Thanks in advance for anyone who is willing to help me solve this.
It's an extremely enhanced feature for Chrome. With Super Drag, you can never be more easily open links or searches in one web page. Just hold on your left mouse button, performing a drag-n-drop, yeah, links open in the new tab.
Fixing Drag-and-DropType "Touch" into the search bar and set the following options to "Enabled". You will have to relaunch Google Chrome for these setting changes to apply. Once you have relaunched Google Chrome, drag-and-drop gestures should now work on most compatible websites.
To switch the behavior of a single click between left click and right click, tap the Mouse button. A double tap acts as a double click. A double tap and hold allows you to grab and then drag. A two-finger tap acts as a right click.
Have you considered jQuery UI? I know the less external resources the better, but jQuery UI detects when you are dragging, and then (as "The Reveller" said), you could add a class to body and specify
.bodyIsDragging{
pointer-events: none
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With