Skip to content

Commit

Permalink
mapbox#894 - only select/deselect markers on true single-tap
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Sep 7, 2015
1 parent f4ab78c commit f29735a
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,11 @@ public boolean onDoubleTap(MotionEvent e) {
public boolean onSingleTapUp(MotionEvent e) {
// Cancel any animation
mNativeMapView.cancelTransitions();
return true;
}

@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
// Open / Close InfoWindow

float x = e.getX();
Expand Down Expand Up @@ -1125,16 +1129,9 @@ else if (mSelectedAnnotation != null)
}
}

performClick();
return true;
}

// Called for single taps after a delay
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
return false;
}

// Called for a long press
@Override
public void onLongPress(MotionEvent e) {
Expand Down

0 comments on commit f29735a

Please sign in to comment.