From b340ec2ef92e9def18bd67e41741ec3d3baf1357 Mon Sep 17 00:00:00 2001 From: renekton Date: Tue, 10 Sep 2024 20:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/style/background/gradient/GradientBar.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/style/background/gradient/GradientBar.java b/designer-base/src/main/java/com/fr/design/style/background/gradient/GradientBar.java index 923c8ec39e..bd243f2c35 100644 --- a/designer-base/src/main/java/com/fr/design/style/background/gradient/GradientBar.java +++ b/designer-base/src/main/java/com/fr/design/style/background/gradient/GradientBar.java @@ -343,8 +343,7 @@ public class GradientBar extends AbstractComponentPopBox implements UIObserver, index = 0; } } - boolean x = e.getX() <= max && e.getX() >= min; - if (x && e.getY() < MAX_VERTICAL) { + if (e.getX() <= max && e.getX() >= min && e.getY() < MAX_VERTICAL) { list.get(index).setX(e.getX()); } }