diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java index 4cc551613..29320a3d2 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java @@ -187,7 +187,9 @@ public class DecoratorSkin extends SkinBase { s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, container.getWidth(), FXUtils.SINE); if (animation != null) { animation.setOnFinished(action -> { - leftPane.prefWidthProperty().bind(container.widthProperty()); + if (animation.getStatus() != Animation.Status.STOPPED) { + leftPane.prefWidthProperty().bind(container.widthProperty()); + } }); } }