corrections

This commit is contained in:
veliymolfar 2020-01-14 17:23:20 +02:00
parent 2a678e3103
commit c39b10c1b9

View file

@ -161,12 +161,10 @@ public class MultiTouchSupport {
}
zoomRelative = distance / zoomStartedDistance;
listener.onZoomingOrRotating(zoomRelative, angleRelative);
return true;
} else if (inTiltMode) {
float dy2 = secondFingerStart.y - y2;
float viewAngle = dy2 / 8f;
listener.onChangingViewAngle(viewAngle);
return true;
} else if (isTiltSupported()) {
float dx1 = Math.abs(firstFingerStart.x - x1);
float dx2 = Math.abs(secondFingerStart.x - x2);
@ -186,11 +184,10 @@ public class MultiTouchSupport {
zoomRelative = 0;
inZoomMode = true;
}
return true;
} else {
inZoomMode = true;
return true;
}
return true;
}
} catch (Exception e) {
log.debug("Multi touch exception" , e); //$NON-NLS-1$