Skip to content

Commit

Permalink
mapbox#894 - flip marker tap bounds to be top-biased
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Sep 7, 2015
1 parent bccacb5 commit 1caf50a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,8 @@ public boolean onSingleTapUp(MotionEvent e) {
float toleranceWidth = 40 * mScreenDensity;
float toleranceHeight = 60 * mScreenDensity;

RectF tapRect = new RectF(tapPoint.x - toleranceWidth / 2, tapPoint.y - 2 * toleranceHeight / 3,
tapPoint.x + toleranceWidth / 2, tapPoint.y + 1 * toleranceHeight / 3);
RectF tapRect = new RectF(tapPoint.x - toleranceWidth / 2, tapPoint.y + 2 * toleranceHeight / 3,
tapPoint.x + toleranceWidth / 2, tapPoint.y - 1 * toleranceHeight / 3);

List<LatLng> corners = Arrays.asList(
fromScreenLocation(new PointF(tapRect.left, tapRect.bottom)),
Expand Down

0 comments on commit 1caf50a

Please sign in to comment.