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) {
8383 oThis .startX , oThis .startY );
8484 if (oThis .status == 0 ) {
8585 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 ;
8888 dndEvt .mouseMoveTo (evt .x , evt .y );
8989 oThis .notifyDragBegan (dndEvt );
9090 }
@@ -99,6 +99,8 @@ public static boolean onmousedown(Object e, DragAndDrop oThis) {
9999 }
100100 document .onselectstart = DNDUtils .onselectstart ;
101101 evt .target .onselectstart = DNDUtils .onselectstart ;
102+ oThis .startX = evt .x ;
103+ oThis .startY = evt .y ;
102104 document .onmousemove = DNDUtils .bindFunctionWith (DNDUtils .onmousemove , oThis );
103105 document .onkeyup = DNDUtils .bindFunctionWith (DNDUtils .onkeyup , oThis );
104106 document .onmouseup = DNDUtils .bindFunctionWith (DNDUtils .onmouseup , oThis ); //oThis.element.onmouseup;
You can’t perform that action at this time.
0 commit comments