ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Mouse over iframe breaks drag #268

Closed maxmumford closed 10 years ago

maxmumford commented 10 years ago

Hi all,

I have a simple grid with equal size squares. Each square has a title bar set as the drag handle, and the contents is an iframe.

If I click on the title bar and start dragging, then quickly move my mouse so it leaves the drag handle element and mouses over the iframe, the drag stops. If I keep the mouse button held down and move the cursor away from the iframe, the drag continues. See video linked below:

https://drive.google.com/file/d/0B9fGr6w-dfLWaGdDcjlyazZaaVU/edit?usp=sharing

The behaviour I expect is the drag to continue even if my mouse leaves the drag handle element and hovers over the iframe element.

Does anybody know how I can fix this?

Thanks, Max

maxmumford commented 10 years ago

blogged a fix here: http://maxmakedesign.co.uk/posts/20

mdunc commented 9 years ago

@maxmumford Your link is dead. Do you have an updated URL?

Edit: Nevermind, found it here http://www.maxmakedesign.co.uk/development/2013/gridster-breaks-iframe-drag-drop/