Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - scale factor value of 1 should zoom out
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Dec 13, 2017
1 parent 7c06eda commit fa704c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public boolean onScale(ScaleGestureDetector detector) {
return super.onScale(detector);
}

wasZoomingIn = (Math.log(detector.getScaleFactor()) / Math.log(Math.PI / 2)) >= 0;
wasZoomingIn = (Math.log(detector.getScaleFactor()) / Math.log(Math.PI / 2)) > 0;
if (tiltGestureOccurred) {
return false;
}
Expand Down

0 comments on commit fa704c8

Please sign in to comment.