second shot at fling prevention for double tap zoom
This commit is contained in:
parent
c86c0960c6
commit
e832804fed
1 changed files with 5 additions and 1 deletions
|
@ -862,7 +862,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
|||
layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox());
|
||||
}
|
||||
}
|
||||
if (!doubleTapScaleDetector.isInZoomMode()) {
|
||||
if (!doubleTapScaleDetector.isInZoomMode() && !doubleTapScaleDetector.isDoubleTapping()) {
|
||||
gestureDetector.onTouchEvent(event);
|
||||
}
|
||||
return true;
|
||||
|
@ -1124,6 +1124,10 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
|||
|
||||
@Override
|
||||
public boolean onSingleTapConfirmed(MotionEvent e) {
|
||||
if (doubleTapScaleDetector.isDoubleTapping()) {
|
||||
// Needed to suppress false single tap detection if we mask gestures on isDoubleTapping()
|
||||
return true;
|
||||
}
|
||||
PointF point = new PointF(e.getX(), e.getY());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("On click event " + point.x + " " + point.y); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
|
Loading…
Reference in a new issue