Project: SWT
Bug 27977 drag drop threshold region not calculated properly
Reported: 2002-12-09 16:30:52 | Status: resolved fixed

The Windows implementation of SWT does not correctly identify the threshold region (i.e., the area surrounding the mouse cursor outside of which movement should be regarded as the initiation of a drag and drop operation). This is because the threshold detection code expects screen coordinates while the mouse event uses client coordinates. It can be fixed by adding the following line to org/eclipse/swt/widgets/Control.java:3397. (I've tested this and it works for me.) OS.ClientToScreen(handle, pt);

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java