cancel simple gestures if multitouch is in use

This commit is contained in:
sonora 2016-12-28 11:22:17 +01:00
parent 2a5b69006a
commit 418976ffb1

View file

@ -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;
}