Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJay committed Sep 15, 2015
1 parent ba15207 commit 94dae2e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,14 @@ public void limitTransAndScale(Matrix matrix, RectF content) {
float newTransX = Math.min(Math.max(curTransX, maxTransX - mTransOffsetX), mTransOffsetX);
mTransX = newTransX;

// if(curScaleX < mMinScaleX) {
// newTransX = (-width * (mScaleX - 1f)) / 2f;
// }

float maxTransY = height * (mScaleY - 1f);
float newTransY = Math.max(Math.min(curTransY, maxTransY + mTransOffsetY), -mTransOffsetY);
mTransY = newTransY;

vals[Matrix.MTRANS_X] = newTransX;
vals[Matrix.MTRANS_X] = mTransX;
vals[Matrix.MSCALE_X] = mScaleX;

vals[Matrix.MTRANS_Y] = newTransY;
vals[Matrix.MTRANS_Y] = mTransY;
vals[Matrix.MSCALE_Y] = mScaleY;

matrix.setValues(vals);
Expand Down

0 comments on commit 94dae2e

Please sign in to comment.