reset pinch scale delta when going into scale mode
This commit is contained in:
parent
a5c9b9edac
commit
f48144791b
@ -301,7 +301,12 @@ public class MapEventLayer extends Layer implements Map.InputListener, GestureLi
|
|||||||
// enter exclusice scale mode
|
// enter exclusice scale mode
|
||||||
if (Math.abs(deltaPinch) > (CanvasAdapter.dpi
|
if (Math.abs(deltaPinch) > (CanvasAdapter.dpi
|
||||||
/ MIN_SLOP * PINCH_ZOOM_THRESHOLD)) {
|
/ MIN_SLOP * PINCH_ZOOM_THRESHOLD)) {
|
||||||
mCanRotate = mDoRotate || false;
|
|
||||||
|
if (!mDoRotate) {
|
||||||
|
mPrevPinchWidth = pinchWidth;
|
||||||
|
mCanRotate = false;
|
||||||
|
}
|
||||||
|
|
||||||
mCanTilt = false;
|
mCanTilt = false;
|
||||||
mDoScale = true;
|
mDoScale = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user