Erik Beeson schrieb:
Also, it looks like the current position is stored internally in the
Draggable somewhere. Maybe try one of these:
dropped.dragCfg.currentPointer.x
dropped.dragCfg.nx
dropped.dragCfg.nRx
Thanks Erik!
dropped.dragCfg.currentPointer.x works like a charm. It's the postion
That's just the position of the draggable (which you've called
'droppped'), right? Maybe: $(dropped).css('left') and
$(dropped).css('top').
Or you could use a function on the onDrag event of the draggable that
updates some local variables to save the last position:
var x;
var y;
2 matches
Mail list logo