Skip to content

fix(MouseInput): check the pressed button with ev.button property instead of ev.which#981

Open
Paul167 wants to merge 1 commit intohammerjs:masterfrom
Paul167:fix/event_which
Open

fix(MouseInput): check the pressed button with ev.button property instead of ev.which#981
Paul167 wants to merge 1 commit intohammerjs:masterfrom
Paul167:fix/event_which

Conversation

@Paul167
Copy link

@Paul167 Paul167 commented May 18, 2016

Fixes #976. This replaces the non-standard MouseEvent.which property check with the recommended MouseEvent.button.

Tested on OSX 10.11.4: Chrome 50, WebDriver (ChromeDriver) 2.19, Safari 9.1, Firefox 46; Windows 7: IE11, Chrome 50.

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