In most MS WINDOWS platforms, the mouse DOWN and UP events are immediately followed by MOVE and DRAG without reason. Unix platforms do not seem to have this bug.

Click on the red canvas to test it.

(YOU CANNOT SEE A JAVA APPLET HERE)

Clickmovebug.java

Workaround: check mouse pointer position.