fix for jump when lifting one finger during pinch
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user