DRAG AND DROP This code enables a simple drag and drop operation. You can click and drag the ball with the mouse and drop it wherever you like.