corrections

This commit is contained in:
veliymolfar 2020-01-14 17:47:55 +02:00
parent c39b10c1b9
commit b3400dce5e

View file

@ -111,9 +111,11 @@ public class MultiTouchSupport {
} }
Integer pointCount = (Integer) getPointerCount.invoke(event); Integer pointCount = (Integer) getPointerCount.invoke(event);
if(pointCount < 2){ if(pointCount < 2){
if (inZoomMode || inTiltMode) { if (inZoomMode) {
listener.onZoomOrRotationEnded(zoomRelative, angleRelative); listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
inZoomMode = false; inZoomMode = false;
return true;
} else if (inTiltMode) {
inTiltMode = false; inTiltMode = false;
return true; return true;
} }