From ea933b66659e9adc23e34adea07b3450764fb4a3 Mon Sep 17 00:00:00 2001
From: Paul Kaplan <pkaplan@media.mit.edu>
Date: Fri, 15 Dec 2017 11:53:02 -0500
Subject: [PATCH] Button property does not exist for touch actions

---
 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 fcff811bf..dcf11835e 100644
--- a/src/containers/stage.jsx
+++ b/src/containers/stage.jsx
@@ -192,7 +192,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.button === 0) {
+        if (e.button === 0 || e instanceof TouchEvent) {
             this.setState({
                 mouseDown: true,
                 mouseDownPosition: mousePosition,
-- 
GitLab