fix for jump when lifting one finger during pinch

This commit is contained in:
Gavin McDonald
2018-09-25 20:18:03 -04:00
parent 43339169c0
commit 0fcd1e7639

View File

@@ -196,12 +196,12 @@ export default class OnTap {
}
if (event.touches.length <= 1) {
this.state.pinching = false;
this.state.scaleStart = null;
this.state.lastPinch = null;
}
if (event.touches.length === 0) {
this.state.pinching = false;
this.state.scaleStart = null;
this.state.moving = null;
this.state.lastX = null;
this.state.lastY = null;