Skip to content

Commit

Permalink
Merge pull request #51 from devexperts/50-disable-yaxis-when-candles-…
Browse files Browse the repository at this point in the history
…on-chart-not-presented

feat: Prohibit dragging YAxis if config.visible is false
  • Loading branch information
DeltaZN authored Oct 5, 2023
2 parents 32e1566 + b2853e2 commit 97c40f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/components/y_axis/y-axis-scale.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class YAxisScaleHandler extends ChartBaseElement {
super();
// drag to Y-scale and double click to auto scale
if (config.customScale) {
const dragPredicate = () => config.type !== 'percent';
const dragPredicate = () => config.type !== 'percent' && config.visible;
const dragNDropYComponent = new DragNDropYComponent(
hitTest,
{
Expand Down

0 comments on commit 97c40f6

Please sign in to comment.