Replace clickPosition by mouse (an instance of MouseEvent).
Remove unused properties.