Skip to content

Commit 5ebd1b9

Browse files
committed
fix: correctly handle resetZoom
1 parent 9b1dda4 commit 5ebd1b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/charting/charts/BarLineChartBase.ts

+2
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,11 @@ export abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatte
560560
* Zooms out to original size.
561561
*/
562562
public resetZoom() {
563+
this.mViewPortHandler.mMatrixTouch.reset();
563564
this.mViewPortHandler.resetZoom(this.mZoomMatrixBuffer);
564565
this.mViewPortHandler.refresh(this.mZoomMatrixBuffer, this, false);
565566

567+
566568
// Range might have changed, which means that Y-axis labels
567569
// could have changed in size, affecting Y-axis size.
568570
// So we need to recalculate offsets.

0 commit comments

Comments
 (0)