avoid false touches during operations
This commit is contained in:
parent
b03425fb19
commit
3674025076
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue