JQuery UI Draggable IFrameFix
|Reported by:||VIRGOFX||Owned by:|
The JQuery UI Draggable has a problem when using the options [iframeFix = true] where the options.distance is greater then 0.
The draggable is creating the iframefix containers when the draggable starts. If the distance is set to 0, the start is fired immediately upon mouse click. However, if distance is > 0, which is useful when a click event needs to be registered on the draggable, the iframefix containers are not applied until the mousemove event registers an appropriate distance. However, when dragging over iframes, this won't register the mousemove correctly and subsequently won't start the dragging.
The iframeFix containers need to be moved from [start of dragging] to [mouseCapture].
Here is a jsFiddle test case: http://jsfiddle.net/VXbPE/
Note: When dragging the black resizer .. it may take 3-4 times before you notice it doesn't drag with the mouse. Once you release the mouse/and or move the resizer closer to it's original position (e.g. away from the iframes) it will [start] and set the iframefix containers.
Change History (7)
comment:3 Changed 5 years ago by Scott González
- Resolution set to fixed
- Status changed from open to closed