PDA

View Full Version : DOM handle dies when mouse crosses iframe



Mistrel
05-15-2006, 11:10 PM
The code in question refers to a modified version of DD's DOM Drag & Drop script (http://dynamicdrive.com/dynamicindex11/domdrag/).

http://3dfolio.com/ediblepoly/dom_ex.htm

All of the source is in the example.

The problem is that if the handle is being dragged too quickly and the mouse intersects the iframe the script pauses until it exits. I plan to have text within the iframe body that I need to remain selectable as well.

I'm thinking that the simplest method would be to trigger a function to push the mouse back into the parent frame from within the iframe if the mouse enters while depressed

Or maybe creating a transparent handle (small square) that follows beneath the mouse when activating the handle? Or a transparent handle that expands 100% by 100% only while the mouse button is down.

Mistrel
05-16-2006, 02:36 AM
I solved the problem by using the same showhide() function to call a div to overlap the iframe during mousedown events on handles. Score. ^^