MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Fixes issue #4334 where zoomAndCenterAnimated did not center

Open SimonJackler opened this issue 1 year ago • 1 comments

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.

SimonJackler avatar Dec 18 '23 14:12 SimonJackler

While you wait for a merge (the last was 3 years ago), I merged it here already

hannesa2 avatar Feb 01 '24 09:02 hannesa2