Skip to content

Commit

Permalink
Pull request #5288: Bugfix/DXCF-5613 chart lock scale doesn t work pr…
Browse files Browse the repository at this point in the history
…operly via zoom in out buttons

Merge in DXCHARTS/dxchart5 from bugfix/DXCF-5613-chart-lock-scale-doesn-t-work-properly-via-zoom-in-out-buttons to master

* commit '57b37e6ad2e2e22daf3072619f53f107f41fb5b2':
  [DXCF-5613] Chart - Lock scale doesn't work properly via zoom in/out buttons // init
  [DXCF-5613] Chart - Lock scale doesn't work properly via zoom in/out buttons // init

GitOrigin-RevId: cd7bd2faa961ba75c656331e91c3deb26d4db23f
  • Loading branch information
Keelaro1 authored and dxcity committed Nov 19, 2024
1 parent 19f7a22 commit b32be25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart/model/scale.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 - 2023 Devexperts Solutions IE Limited
* Copyright (C) 2019 - 2024 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
Expand Down Expand Up @@ -181,7 +181,7 @@ export class ScaleModel extends ViewportModel {
}

private zoomXTo(state: ViewportModelState, zoomIn: boolean, forceNoAnimation?: boolean) {
const initialStateCopy = { ...state };
const initialStateCopy = this.export();
const constrainedState = this.scalePostProcessor(initialStateCopy, state);
this.zoomReached = this.calculateZoomReached(constrainedState.zoomX, zoomIn);

Expand Down

0 comments on commit b32be25

Please sign in to comment.