avoid false touches during operations

This commit is contained in:
sonora 2016-12-27 21:13:34 +01:00
parent b03425fb19
commit 3674025076

View file

@ -855,12 +855,12 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
if (event.getAction() == MotionEvent.ACTION_DOWN) { if (event.getAction() == MotionEvent.ACTION_DOWN) {
animatedDraggingThread.stopAnimating(); animatedDraggingThread.stopAnimating();
} }
for (int i = layers.size() - 1; i >= 0; i--) {
layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox());
}
final boolean isMultiTouch = multiTouchSupport.onTouchEvent(event); final boolean isMultiTouch = multiTouchSupport.onTouchEvent(event);
doubleTapScaleDetector.onTouchEvent(event); doubleTapScaleDetector.onTouchEvent(event);
if (!isMultiTouch && !doubleTapScaleDetector.isInZoomMode()) { if (!isMultiTouch && !doubleTapScaleDetector.isInZoomMode()) {
for (int i = layers.size() - 1; i >= 0; i--) {
layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox());
}
gestureDetector.onTouchEvent(event); gestureDetector.onTouchEvent(event);
} }
return true; return true;