remove obsolete restriction
This commit is contained in:
parent
aa26f9e281
commit
d73c655e20
1 changed files with 5 additions and 5 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue