Fix bug where FireFox right-click triggered event