Let only the second last finger trigger onZoomOrRotationEnded
This commit is contained in:
parent
f98c4e45c1
commit
85da441ed0
1 changed files with 2 additions and 3 deletions
|
@ -88,10 +88,8 @@ public class MultiTouchSupport {
|
||||||
if(pointCount < 2){
|
if(pointCount < 2){
|
||||||
if(inZoomMode){
|
if(inZoomMode){
|
||||||
listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
||||||
if(pointCount == 0){
|
|
||||||
inZoomMode = false;
|
inZoomMode = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Float x1 = (Float) getX.invoke(event, 0);
|
Float x1 = (Float) getX.invoke(event, 0);
|
||||||
|
@ -113,6 +111,7 @@ public class MultiTouchSupport {
|
||||||
angleStarted = angle;
|
angleStarted = angle;
|
||||||
inZoomMode = true;
|
inZoomMode = true;
|
||||||
return true;
|
return true;
|
||||||
|
// Let only the second last finger trigger onZoomOrRotationEnded (above)
|
||||||
//} else if(actionCode == ACTION_POINTER_UP){
|
//} else if(actionCode == ACTION_POINTER_UP){
|
||||||
// if(inZoomMode){
|
// if(inZoomMode){
|
||||||
// listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
// listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
||||||
|
|
Loading…
Reference in a new issue