diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ed011227..7d96e937 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,7 +18,9 @@ jobs: - run: yarn install --frozen-lockfile - run: git config user.email "pmalyshev@devexperts.com" - run: git config user.name "dxpm" - - run: npm version minor --no-git-tag-version + - run: npm version from-git --no-git-tag-version + - run: git commit -a -m "Bump package version" + - run: git push origin HEAD:refs/heads/HEAD - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPMJS_DEVEXPERTS_BOT_PUBLISH_TOKEN}} diff --git a/package.json b/package.json index 5bb55fd9..adac6192 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devexperts/dxcharts-lite", - "version": "2.3.0", + "version": "2.4.1", "description": "DXCharts Lite", "author": "Devexperts Solutions IE Limited", "license": "MPL 2.0", diff --git a/src/chart/components/y_axis/y-axis-scale.handler.ts b/src/chart/components/y_axis/y-axis-scale.handler.ts index b0c2b80f..b0a459a0 100644 --- a/src/chart/components/y_axis/y-axis-scale.handler.ts +++ b/src/chart/components/y_axis/y-axis-scale.handler.ts @@ -98,8 +98,10 @@ export class YAxisScaleHandler extends ChartBaseElement { const newYStart = this.lastYStart - delta; const newYEnd = this.lastYEnd + delta; this.autoScaleCallback(false); - this.scale.setYScale(newYStart, newYEnd); - this.bus.fireDraw(); + if (this.lastYStart !== newYStart || this.lastYEnd !== newYEnd) { + this.scale.setYScale(newYStart, newYEnd); + this.bus.fireDraw(); + } }; private onYDragEnd = () => {