Skip to content
Snippets Groups Projects
Commit ea933b66 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Button property does not exist for touch actions

parent 993a00cc
Branches
Tags
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment