File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/dnd Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ public static boolean onmousemove(Object e, DragAndDrop oThis) {
83
83
oThis .startX , oThis .startY );
84
84
if (oThis .status == 0 ) {
85
85
oThis .status = 1 ;
86
- oThis . startX = dndEvt .startX = evt . x ;
87
- oThis . startY = dndEvt .startY = evt . y ;
86
+ dndEvt .startX = oThis . startX ;
87
+ dndEvt .startY = oThis . startY ;
88
88
dndEvt .mouseMoveTo (evt .x , evt .y );
89
89
oThis .notifyDragBegan (dndEvt );
90
90
}
@@ -99,6 +99,8 @@ public static boolean onmousedown(Object e, DragAndDrop oThis) {
99
99
}
100
100
document .onselectstart = DNDUtils .onselectstart ;
101
101
evt .target .onselectstart = DNDUtils .onselectstart ;
102
+ oThis .startX = evt .x ;
103
+ oThis .startY = evt .y ;
102
104
document .onmousemove = DNDUtils .bindFunctionWith (DNDUtils .onmousemove , oThis );
103
105
document .onkeyup = DNDUtils .bindFunctionWith (DNDUtils .onkeyup , oThis );
104
106
document .onmouseup = DNDUtils .bindFunctionWith (DNDUtils .onmouseup , oThis ); //oThis.element.onmouseup;
You can’t perform that action at this time.
0 commit comments