Skip to content

Commit

Permalink
fix(axis): remove x axis transition during resize
Browse files Browse the repository at this point in the history
Ref #1949
  • Loading branch information
netil committed Mar 5, 2021
1 parent 7045d47 commit a938681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ChartInternal/Axis/Axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ class Axis {
scale,
outerTick,

// do not transit x Axis on zoom
// do not transit x Axis on zoom and resizing
// https://github.com/naver/billboard.js/issues/1949
id === "x" && ($$.scale.zoom || $$.config.subchart_show) ? true : noTransition
id === "x" && ($$.scale.zoom || $$.config.subchart_show || $$.state.resizing) ? true : noTransition
);
}

Expand Down

0 comments on commit a938681

Please sign in to comment.