remove obsolete restriction

This commit is contained in:
Hardy 2017-01-01 10:01:06 +01:00 committed by GitHub
parent aa26f9e281
commit d73c655e20

View file

@ -157,7 +157,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
private MultiTouchSupport multiTouchSupport; private MultiTouchSupport multiTouchSupport;
private DoubleTapScaleDetector doubleTapScaleDetector; private DoubleTapScaleDetector doubleTapScaleDetector;
private TwoFingerTapDetector twoFingersTapDetector; private TwoFingerTapDetector twoFingersTapDetector;
private boolean afterTwoFingersTap = false; //private boolean afterTwoFingersTap = false;
private boolean afterDoubleTap = false; private boolean afterDoubleTap = false;
public OsmandMapTileView(MapActivity activity, int w, int h) { public OsmandMapTileView(MapActivity activity, int w, int h) {
@ -218,7 +218,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
twoFingersTapDetector = new TwoFingerTapDetector() { twoFingersTapDetector = new TwoFingerTapDetector() {
@Override @Override
public void onTwoFingerTap() { public void onTwoFingerTap() {
afterTwoFingersTap = true; //afterTwoFingersTap = true;
if (isZoomingAllowed(getZoom(), -1)) { if (isZoomingAllowed(getZoom(), -1)) {
getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), true); getAnimatedDraggingThread().startZooming(getZoom() - 1, currentViewport.getZoomFloatPart(), true);
} }
@ -1092,9 +1092,9 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
public void onLongPress(MotionEvent e) { public void onLongPress(MotionEvent e) {
if (multiTouchSupport.isInZoomMode() if (multiTouchSupport.isInZoomMode()
|| doubleTapScaleDetector.isInZoomMode() || doubleTapScaleDetector.isInZoomMode()
|| doubleTapScaleDetector.isDoubleTapping() || doubleTapScaleDetector.isDoubleTapping()) {
|| afterTwoFingersTap) { // || afterTwoFingersTap) {
afterTwoFingersTap = false; //afterTwoFingersTap = false;
return; return;
} }
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {