That code is nothing short of perfect. Thanks for the pointer.  I
learned a lot reading it. --jk

On May 18, 6:57 pm, david <david.brill...@gmail.com> wrote:
> 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 
> thehttp://github.com/xilinus/prototypeui/blob/bd14194a011bdc60796135e583...
> to see it in action.
>
> --
> david
>
> 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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to