Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorrect event.button checking. (#608)
MouseEvent.button === 0 if main button pressed, usually the left button or the un-initialized state (https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button). Also usually if event.which not available this means event.button exists, so enough just check them in the correct sequence.
- Loading branch information