![]() Topic awaiting preservation: Drag and drop (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: oslo, Norway |
![]() 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 |
![]() 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 |
![]() Thanks slime. it works. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() 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 |
![]() |