Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
Should only allow click to proceed if it is used the left mouse button
Browse files Browse the repository at this point in the history
  • Loading branch information
FagnerMartinsBrack committed Sep 12, 2014
1 parent e210c96 commit f4561ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/App.js
Expand Up @@ -523,6 +523,11 @@
return;
}

if (event.button) {
console.log('Navigate aborted, invalid mouse key is pressed');
return;
}

var link = event.target;
while (link && link.tagName !== 'A') {
link = link.parentNode;
Expand Down

0 comments on commit f4561ac

Please sign in to comment.