reinstate ACTION_POINTER_UP handling
This commit is contained in:
parent
9da4f4e7fb
commit
f6b1b5c387
1 changed files with 6 additions and 7 deletions
|
@ -111,13 +111,12 @@ public class MultiTouchSupport {
|
|||
angleStarted = angle;
|
||||
inZoomMode = true;
|
||||
return true;
|
||||
// Let only the second last finger trigger onZoomOrRotationEnded (above)
|
||||
//} else if(actionCode == ACTION_POINTER_UP){
|
||||
// if(inZoomMode){
|
||||
// listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
||||
// inZoomMode = false;
|
||||
// }
|
||||
// return true;
|
||||
} else if(actionCode == ACTION_POINTER_UP){
|
||||
if(inZoomMode){
|
||||
listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
||||
inZoomMode = false;
|
||||
}
|
||||
return true;
|
||||
} else if(inZoomMode && actionCode == MotionEvent.ACTION_MOVE){
|
||||
if(angleDefined) {
|
||||
angleRelative = MapUtils.unifyRotationTo360(angle - angleStarted);
|
||||
|
|
Loading…
Reference in a new issue