Topic awaiting preservation: Dragable item + more Qs |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 06-07-2002 18:19
edit: Just see below , what was here before wasnt very clear. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 06-07-2002 21:07
Hugh, ever seen one of these ---> . <--- Their called full-stops. Please use them... |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 06-07-2002 22:25
I think I know what you're talking about, but only cause I've dealt with this so many times. When you click on the slider (or whatever you call the draggable bit) the mouse position is not the same as the top-left of the dragging bit, it's actually *offset* just a few pixels, where you clicked. When the dragging starts, you need to compare the mouse x-y coordinates with the top-left of the bit that is being dragged, and save that offset value in a variable. Now the dragged layers position is the mouse coordinates, minus that offset. It sounds like you're nearly there, give that a try. |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 06-08-2002 16:22
Okay .. let me try again (with proper punctuation, you should see essays I write, I can for ages with out a single full stop) |