Fixed bug where event would be created when right or middle clicking.