Skip to content

Commit

Permalink
fix(middle-click): Allow middle click on links
Browse files Browse the repository at this point in the history
We let middle clicks go through
  • Loading branch information
pixelastic committed Nov 9, 2015
1 parent 1f3cee4 commit a7601c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function isDomElement(o) {
}

function isSpecialClick(event) {
return event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
let isMiddleClick = (event.button === 1);
return isMiddleClick || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
}

/**
Expand Down

0 comments on commit a7601c0

Please sign in to comment.