Skip to content

Commit

Permalink
Merge pull request nickbutcher#97 from wasdennnoch/master
Browse files Browse the repository at this point in the history
Fix FabTransform circular reveal calculation
  • Loading branch information
nickbutcher authored Jul 5, 2016
2 parents 77ce671 + 5fded59 commit 434be26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ public Animator createAnimator(final ViewGroup sceneRoot,
view.getWidth() / 2,
view.getHeight() / 2,
startBounds.width() / 2,
(float) Math.hypot(endBounds.width() / 2, endBounds.width() / 2));
(float) Math.hypot(endBounds.width() / 2, endBounds.height() / 2));
circularReveal.setInterpolator(
AnimUtils.getFastOutLinearInInterpolator(sceneRoot.getContext()));
} else {
circularReveal = ViewAnimationUtils.createCircularReveal(view,
view.getWidth() / 2,
view.getHeight() / 2,
(float) Math.hypot(startBounds.width() / 2, startBounds.width() / 2),
(float) Math.hypot(startBounds.width() / 2, startBounds.height() / 2),
endBounds.width() / 2);
circularReveal.setInterpolator(
AnimUtils.getLinearOutSlowInInterpolator(sceneRoot.getContext()));
Expand Down

0 comments on commit 434be26

Please sign in to comment.