Skip to content

Commit

Permalink
Merge pull request #194 from AppDevNext/PhilJay#4334-Bugfix-zoomAndCe…
Browse files Browse the repository at this point in the history
…nterAnimated

Fixes zoomAndCenterAnimated did not center on coordinates
  • Loading branch information
hannesa2 authored Feb 1, 2024
2 parents f5c49bf + 762e16c commit 63c94cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public static AnimatedZoomJob getInstance(ViewPortHandler viewPortHandler, View
result.yOrigin = yOrigin;
result.yAxis = axis;
result.xAxisRange = xAxisRange;
result.zoomCenterX = zoomCenterX;
result.zoomCenterY = zoomCenterY;
result.zoomOriginX = zoomOriginX;
result.zoomOriginY = zoomOriginY;
result.resetAnimator();
result.animator.setDuration(duration);
return result;
Expand Down

0 comments on commit 63c94cf

Please sign in to comment.