This program presents the user with two movable balls, one of which drags correctly, and one which does not. It demonstrates the correct technique for dragging an object, which moves the object by the distance traveled by the mouse. The incorrect technique uses the moveTo method to drag the object.
Click below to download the source files for DoubleWhatADrag.