Replaced mouse click event