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

Commit

Permalink
[android] decrease zoom rate by 35%
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed May 27, 2019
1 parent 9229556 commit b03c151
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private double calculateScale(double velocityXY, boolean isScalingOut) {
}

private double getNewZoom(float scaleFactor, boolean quickZoom) {
double zoomBy = Math.log(scaleFactor) / Math.log(Math.PI / 2);
double zoomBy = (Math.log(scaleFactor) / Math.log(Math.PI / 2)) * 0.65;
if (quickZoom) {
// clamp scale factors we feed to core #7514
boolean negative = zoomBy < 0;
Expand Down

0 comments on commit b03c151

Please sign in to comment.