Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not prevent middle click in Firefox nor ctrl-click #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakub-g
Copy link

@jakub-g jakub-g commented Apr 15, 2019

Great resource Andrew, thanks for creating this!

I've noticed a small issue in Firefox: middle-clicking in Firefox prevents opening in new tab, because Firefox fires click for middle clicks (whereas Chrome stopped doing this in v55 in favor of auxclick).

Also ctrlKey was misspelled so it was preventing opening new tab in all browsers.

Chrome stopped dispatching `click` event for middle clicks, but other browsers still do that.
Let's check that via `evt.nativeEvent.button === 1`.

Also `ctrlKey` was misspelled so it was preventing opening new tab in all browsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant