Skip to content

Commit

Permalink
only catch left mouse button clicks to avoid breaking browser tab beh…
Browse files Browse the repository at this point in the history
…aviour (#1725)
  • Loading branch information
johann-sonntagbauer authored and KyleAMathews committed Aug 5, 2017
1 parent 20280a7 commit 8a52ef3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-plugin-catch-links/src/catch-links.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function(root, cb) {
root.addEventListener(`click`, function(ev) {
if (
ev.button !== 0 ||
ev.altKey ||
ev.ctrlKey ||
ev.metaKey ||
Expand Down

0 comments on commit 8a52ef3

Please sign in to comment.