Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-12-27 20:14:23 +01:00
commit f98c4e45c1

View file

@ -88,8 +88,10 @@ public class MultiTouchSupport {
if(pointCount < 2){
if(inZoomMode){
listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
if(pointCount == 0){
inZoomMode = false;
}
}
return false;
}
Float x1 = (Float) getX.invoke(event, 0);
@ -111,12 +113,12 @@ public class MultiTouchSupport {
angleStarted = angle;
inZoomMode = true;
return true;
} 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);