@devexperts/dxcharts-lite 2.7.17 → 2.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -246,7 +246,7 @@ export class ScaleModel extends ViewportModel {
246
246
  if (initialState.yStart === yStart && initialState.yEnd === yEnd && initialState.zoomY > 0) {
247
247
  return;
248
248
  }
249
- if (this.state.lockPriceToBarRatio) {
249
+ if (this.state.lockPriceToBarRatio && this.initialViewportValidSubject.getValue()) {
250
250
  this.setLockedYScale(yStart, yEnd, fire, initialState);
251
251
  return;
252
252
  }