MPAndroidChart
MPAndroidChart copied to clipboard
Fixes issue #4334 where zoomAndCenterAnimated did not center
PR Checklist:
- [x] I have tested this extensively and it does not break any existing behavior.
- [x] I have added/updated examples and tests for any new behavior.
- [x] If this is a significant change, an issue has already been created where the problem / solution was discussed: [#4334]
PR Description
Fixes issue with zoomAndCenterAnimated do not center but zooms to the start of the graph. See issue #4334
In static method AnimatedZoomJob:getInstance added the assignment of the parameters zoomCenterX, zoomCenterY, zoomOriginX, zoomOriginY.
This is a tiny fix to this excellent library. The solution was suggested 4 years ago but noone created a PR. Please merge so me and others don't have to compile from source.
While you wait for a merge (the last was 3 years ago), I merged it here already