From badaf7346dfaada450d649344b42b406083e635c Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 27 Dec 2016 12:04:47 +0100 Subject: [PATCH] test blocking genericMotion while zooming --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 6560c5c5f5..b7abdf0fd0 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -824,7 +824,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public boolean onGenericMotionEvent(MotionEvent event) { if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0 && event.getAction() == MotionEvent.ACTION_SCROLL && - event.getAxisValue(MotionEvent.AXIS_VSCROLL) != 0) { + event.getAxisValue(MotionEvent.AXIS_VSCROLL) != 0 && + !multiTouchSupport.isInZoomMode()) { final RotatedTileBox tb = getCurrentRotatedTileBox(); final double lat = tb.getLatFromPixel(event.getX(), event.getY()); final double lon = tb.getLonFromPixel(event.getX(), event.getY());