Skip to content
Snippets Groups Projects
Commit 24377200 authored by Jake Bartles's avatar Jake Bartles
Browse files

changes event.which to event.button to adhere to MDN standards

parent e8f4f65d
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ class Stage extends React.Component {
this.updateRect();
const {x, y} = getEventXY(e);
const mousePosition = [x - this.rect.left, y - this.rect.top];
if (e.which !== 3) {
if (e.button === 0) {
this.setState({
mouseDown: true,
mouseDownPosition: mousePosition,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment