PDA

View Full Version : Dragging events during action



ljadrbln
24 Nov 2011, 4:34 AM
Hello,

Is it possible to track event while element still dragging?
I need to know x,y coordinates in each moment of the dragging.

Thanks

tvanzoelen
24 Nov 2011, 7:02 AM
Yes, get the DragSource of the element and listen to the onDrag event.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.dd.DragSource

ljadrbln
24 Nov 2011, 6:08 PM
tvanzoelen, thanks for the sharing!