diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index c5c36c2e68c83479d7390e8ab24ba9dba033f800..ad0a9cbf00e967901962a2949dc5d7bcd5a0f126 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -236,7 +236,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 || e instanceof TouchEvent) { + if (e.button === 0 || (window.TouchEvent && e instanceof TouchEvent)) { this.setState({ mouseDown: true, mouseDownPosition: mousePosition,