Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-12-29 16:42:13 +01:00
commit c8b87fdda7

View file

@ -40,7 +40,7 @@ public class MultiTouchSupport {
private float scale = 1;
private PointF centerPoint = new PointF();
private boolean multiTouch;
private boolean multiTouch = false;
public MultiTouchSupport(Context ctx, MultiTouchZoomListener listener) {
this.ctx = ctx;
@ -119,14 +119,15 @@ public class MultiTouchSupport {
listener.onGestureInit(x1, y1, x2, y2);
return true;
}
case MotionEvent.ACTION_POINTER_UP: {
// End only on second-last pointer up, see above
//case MotionEvent.ACTION_POINTER_UP: {
if (inZoomMode || inTiltMode) {
listener.onGestureFinished(scale, rotation);
inZoomMode = false;
inTiltMode = false;
}
return true;
// if (inZoomMode || inTiltMode) {
// listener.onGestureFinished(scale, rotation);
// inZoomMode = false;
// inTiltMode = false;
// }
// return true;
}
case MotionEvent.ACTION_MOVE: {