Skip to content

Commit 63c94cf

Browse files
authored
Merge pull request #194 from AppDevNext/#4334-Bugfix-zoomAndCenterAnimated
Fixes zoomAndCenterAnimated did not center on coordinates
2 parents f5c49bf + 762e16c commit 63c94cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MPChartLib/src/main/java/com/github/mikephil/charting/jobs/AnimatedZoomJob.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public static AnimatedZoomJob getInstance(ViewPortHandler viewPortHandler, View
3535
result.yOrigin = yOrigin;
3636
result.yAxis = axis;
3737
result.xAxisRange = xAxisRange;
38+
result.zoomCenterX = zoomCenterX;
39+
result.zoomCenterY = zoomCenterY;
40+
result.zoomOriginX = zoomOriginX;
41+
result.zoomOriginY = zoomOriginY;
3842
result.resetAnimator();
3943
result.animator.setDuration(duration);
4044
return result;

0 commit comments

Comments
 (0)