Hi jk,

the mouse position could be retrieve from the event object with
Event.pointerX and Event.pointerY.
so you first need to observe the mousedown event, and observe the
mousemove event. you could get from this event the the mouse position.
Don't forget when the mousedown happend to observe the mouseup event
to stopObserving the mousemove when the mouse button is released.

an excellent code that work this way is the dragging management in
prototype UI. go to the
to see it in action.


On 19 mai, 00:26, jk <jk.lists.questi...@gmail.com> wrote:
> How do you detect a drag coord (mousedown + move).  I don't see
> documentation on the site. Thanks. --JK
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to