Topic awaiting preservation: Drag and drop |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: oslo, Norway |
posted 11-09-2001 16:38
Ok, i have a damn problem whit a script, the script drags a layer around on the screen if the mouse it down in the layer. but if mouse is down on a image it won't work, somone know how to fix it? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 11-09-2001 16:48
Make sure your mousedown, mouseup, and mousemove events are returning false. Plus, in browsers with good DOMs, call event.CancelBubble() at the end of the functions. |
Paranoid (IV) Inmate From: oslo, Norway |
posted 11-09-2001 16:54
Thanks slime. it works. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 11-09-2001 16:55
Really? That's weird, I usually have to fiddle with the return values and event functions for half an hour or so before I get it working; I expected you to come back asking me why what I said didn't work. =) |
Paranoid (IV) Inmate From: oslo, Norway |
posted 11-09-2001 17:34
hehe, it must be you damn god explaining. thanks again |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 11-10-2001 10:14 |