From 15fd8e9fe6abca589542712efb8ecc06dc88f3de Mon Sep 17 00:00:00 2001 From: Kirill Bobkov Date: Thu, 5 Oct 2023 12:26:15 +0400 Subject: [PATCH] feat: Prohibit dragging YAxis if config.visible is false --- src/chart/components/y_axis/y-axis-scale.handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c3768fc0..94ebfdff 100644 --- a/src/chart/components/y_axis/y-axis-scale.handler.ts +++ b/src/chart/components/y_axis/y-axis-scale.handler.ts @@ -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, {