diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java index d23eea910..2c5e20352 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java @@ -183,7 +183,10 @@ public class VanChartInteractivePane extends AbstractVanChartScrollPane { private void checkZoomEnabled() { if (zoomWidget != null && axisRotation != null) { - zoomWidget.setSelectedIndex(1); + if (axisRotation.getSelectedIndex() == 0) { + //只有开启坐标轴翻转,才需要将缩放控件强制关闭。 + zoomWidget.setSelectedIndex(1); + } checkZoomPane(); zoomWidget.setEnabled(axisRotation.getSelectedIndex() == 1); }