From e8f4f65d8275d2f226940d7d0892bc96a92279fe Mon Sep 17 00:00:00 2001
From: Jake Bartles <bartljak@gmail.com>
Date: Wed, 4 Oct 2017 13:28:26 -0400
Subject: [PATCH] checking for right click instead of left click now

---
 src/containers/stage.jsx | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx
index e60419e5b..63d1fd170 100644
--- a/src/containers/stage.jsx
+++ b/src/containers/stage.jsx
@@ -179,15 +179,16 @@ class Stage extends React.Component {
         this.updateRect();
         const {x, y} = getEventXY(e);
         const mousePosition = [x - this.rect.left, y - this.rect.top];
-        this.setState({
-            mouseDown: true,
-            mouseDownPosition: mousePosition,
-            mouseDownTimeoutId: setTimeout(
-                this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]),
-                500
-            )
-        });
-
+        if (e.which !== 3) {
+            this.setState({
+                mouseDown: true,
+                mouseDownPosition: mousePosition,
+                mouseDownTimeoutId: setTimeout(
+                    this.onStartDrag.bind(this, mousePosition[0], mousePosition[1]),
+                    500
+                )
+            });
+        }
         const data = {
             isDown: true,
             x: mousePosition[0],
-- 
GitLab