[android] #4517 - fix two tap gestures when zoomGesturesEnabled = false
This commit is contained in:
@@ -1429,7 +1429,9 @@ public class MapView extends FrameLayout {
|
||||
|
||||
case MotionEvent.ACTION_POINTER_DOWN:
|
||||
// Second pointer down
|
||||
mTwoTap = event.getPointerCount() == 2;
|
||||
mTwoTap = event.getPointerCount() == 2
|
||||
&& !mDestroyed
|
||||
&& mMapboxMap.getUiSettings().isZoomGesturesEnabled();
|
||||
if (mTwoTap) {
|
||||
// Confirmed 2nd Finger Down
|
||||
trackGestureEvent(MapboxEvent.GESTURE_TWO_FINGER_SINGLETAP, event.getX(), event.getY());
|
||||
|
||||
Reference in New Issue
Block a user