C
Christoph
I've got a drag source and a drop target. They are set up thusly:
var oDragSource = new dojo.dnd.HtmlDragSource(oDragRow, "layoutRow");
oDragSource.onDragEnd = function( e ) { console.log( 'onDragEnd: ' );
console.log( e ); }
var oTargetRow = new dojo.dnd.HtmlDropTarget(oContainer, "layoutRow");
oTargetRow.onDrop = function( e ) { console.log( 'onDrop: ' );
console.log( e ); }
When the onDrop is triggered, the mouse coordinates are set correctly.
However, when the onDragEnd is triggered, the mouse coordinates are
set to 0,0. Is there a reason for that? Why can I not get the mouse
position when onDragEnd is triggered? I've done some searching on
Google and I haven't run across anything that tells me it works in one
case but not the other. In both cases, I'm shown that it's a "mouseup"
event in firebug's console. However, for onDragEnd, it's always
showing "clientX=0, clientY=0".
Am I doing something wrong?
thnx,
Christoph
var oDragSource = new dojo.dnd.HtmlDragSource(oDragRow, "layoutRow");
oDragSource.onDragEnd = function( e ) { console.log( 'onDragEnd: ' );
console.log( e ); }
var oTargetRow = new dojo.dnd.HtmlDropTarget(oContainer, "layoutRow");
oTargetRow.onDrop = function( e ) { console.log( 'onDrop: ' );
console.log( e ); }
When the onDrop is triggered, the mouse coordinates are set correctly.
However, when the onDragEnd is triggered, the mouse coordinates are
set to 0,0. Is there a reason for that? Why can I not get the mouse
position when onDragEnd is triggered? I've done some searching on
Google and I haven't run across anything that tells me it works in one
case but not the other. In both cases, I'm shown that it's a "mouseup"
event in firebug's console. However, for onDragEnd, it's always
showing "clientX=0, clientY=0".
Am I doing something wrong?
thnx,
Christoph