diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index 7cb733b1979a66ac40fa2b7cf13e3465cdf9cdc4..a6204bab7c8086d55677e29624feb29346bd0d4c 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,