From 24377200938a24321a0a255e10eed2a267f0efea Mon Sep 17 00:00:00 2001 From: Jake Bartles <bartljak@gmail.com> Date: Thu, 5 Oct 2017 15:52:18 -0400 Subject: [PATCH] changes event.which to event.button to adhere to MDN standards --- src/containers/stage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index 63d1fd170..1de93d23d 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -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, -- GitLab