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

Commit

Permalink
[android] - fixed scale animation focal point (#11643)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Apr 10, 2018
1 parent 4ba63d5 commit f55a324
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,8 @@ private Animator createScaleAnimator(double currentZoom, double zoomAddition, lo

@Override
public void onAnimationUpdate(ValueAnimator animation) {
transform.setZoom((Float) animation.getAnimatedValue(), scalePointBegin, 0, true);
PointF scalePoint = focalPoint != null ? focalPoint : scalePointBegin;
transform.setZoom((Float) animation.getAnimatedValue(), scalePoint, 0, true);
}
});
animator.addListener(new AnimatorListenerAdapter() {
Expand Down

0 comments on commit f55a324

Please sign in to comment.