Changed position of the cursor when clicking the mouse button