Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat-improve-perfor…
Browse files Browse the repository at this point in the history
…mace-by-deleting-redraw-background-canvas-area
  • Loading branch information
KirillBobkov committed Dec 21, 2023
2 parents e2c5703 + d206bc0 commit ad50a89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- run: yarn install --frozen-lockfile
- run: git config user.email "[email protected]"
- 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}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 4 additions & 2 deletions src/chart/components/y_axis/y-axis-scale.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit ad50a89

Please sign in to comment.