reinstate ACTION_POINTER_UP handling

This commit is contained in:
sonora 2016-12-28 22:30:25 +01:00
parent 9da4f4e7fb
commit f6b1b5c387

View file

@ -111,13 +111,12 @@ 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); inZoomMode = false;
// inZoomMode = false; }
// } return true;
// return true;
} else if(inZoomMode && actionCode == MotionEvent.ACTION_MOVE){ } else if(inZoomMode && actionCode == MotionEvent.ACTION_MOVE){
if(angleDefined) { if(angleDefined) {
angleRelative = MapUtils.unifyRotationTo360(angle - angleStarted); angleRelative = MapUtils.unifyRotationTo360(angle - angleStarted);