Skip to content

Commit

Permalink
Update CustomGestureDetector.java
Browse files Browse the repository at this point in the history
Code refactoring: added new line between two conditions
  • Loading branch information
xd720p committed Nov 28, 2018
1 parent a84eba1 commit bb45af3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public boolean onScale(ScaleGestureDetector detector) {

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

if (scaleFactor >= 0) {
mListener.onScale(scaleFactor,
detector.getFocusX(), detector.getFocusY());
Expand Down

0 comments on commit bb45af3

Please sign in to comment.