Skip to content

Commit

Permalink
Show distance ruler after each two-finger touch #17711
Browse files Browse the repository at this point in the history
  • Loading branch information
cepprice committed Jul 28, 2023
1 parent dbd2207 commit a338d62
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public void onDraw(Canvas canvas, RotatedTileBox tb, DrawSettings settings) {
wasPinchZoomOrRotation = true;
}

boolean showTwoFingersDistance = !wasPinchZoomOrRotation &&
!view.isWasZoomInMultiTouch() &&
boolean showTwoFingersDistance =
currentTime - view.getMultiTouchStartTime() > DELAY_BEFORE_DRAW &&
(view.isMultiTouch() || currentTime - cacheMultiTouchEndTime < DRAW_TIME);

Expand Down

0 comments on commit a338d62

Please sign in to comment.