Skip to content

Commit

Permalink
Merge pull request #667 from xd720p/double_tap_scaling_bug
Browse files Browse the repository at this point in the history
Fixed quick scaling flipped image
  • Loading branch information
Jawnnypoo committed Nov 28, 2018
2 parents 0564bde + bb45af3 commit b4ba837
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ public boolean onScale(ScaleGestureDetector detector) {

if (Float.isNaN(scaleFactor) || Float.isInfinite(scaleFactor))
return false;

mListener.onScale(scaleFactor,
detector.getFocusX(), detector.getFocusY());

if (scaleFactor >= 0) {
mListener.onScale(scaleFactor,
detector.getFocusX(), detector.getFocusY());
}
return true;
}

Expand Down

0 comments on commit b4ba837

Please sign in to comment.