Skip to content
Snippets Groups Projects
Unverified Commit 38596c2b authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #1043 from paulkaplan/fix-touch-handling

Fix touch actions on the stage
parents b6bb1544 ea933b66
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,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.
Finish editing this message first!
Please register or to comment