Fix double-tap-zoom when click on map object

This commit is contained in:
Alexey Kulish 2016-07-06 00:21:18 +03:00
parent 83ac11a121
commit 153aadc0a4

View file

@ -828,8 +828,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
}
final boolean isMultiTouch = multiTouchSupport.onTouchEvent(event);
doubleTapScaleDetector.onTouchEvent(event);
if (!(isMultiTouch || doubleTapScaleDetector.isInZoomMode()
|| doubleTapScaleDetector.isDoubleTapping())) {
if (!(isMultiTouch || doubleTapScaleDetector.isInZoomMode())) {
gestureDetector.onTouchEvent(event);
}
return true;