From 6c17fcd3a79c9ad3dbf10542f2917f41eef6e0c8 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 3 Jan 2017 13:13:30 +0100 Subject: [PATCH] use constant value to test --- OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java index 57ce48a474..eabd0d0240 100644 --- a/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java +++ b/OsmAnd/src/net/osmand/plus/views/MultiTouchSupport.java @@ -3,7 +3,6 @@ package net.osmand.plus.views; import android.content.Context; import android.graphics.PointF; import android.view.MotionEvent; -import android.view.ViewConfiguration; import net.osmand.PlatformUtil; import net.osmand.util.MapUtils; @@ -78,7 +77,7 @@ public class MultiTouchSupport { private double zoomRelative = 1; private PointF centerPoint = new PointF(); - private static final int mMoveZoomCenterSlop2 = ViewConfiguration.getScaledTouchSlop() * ViewConfiguration.getScaledTouchSlop() / 4; + private final int mMoveZoomCenterSlop2 = 64; private boolean mScrolling = false; public boolean onTouchEvent(MotionEvent event){