From 418976ffb14870619ce9f6320beeda070c532331 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 28 Dec 2016 11:22:17 +0100 Subject: [PATCH] cancel simple gestures if multitouch is in use --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 20d20e652e..ab71bac089 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -862,6 +862,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback { layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox()); } gestureDetector.onTouchEvent(event); + } else { + gestureDetector.onTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis() + 100, MotionEvent.ACTION_CANCEL, 0.0f, 0.0f, 0)); } return true; }