[release/3.7] 修复初次打开部分页面时页面闪烁的问题 (#4817)

https://github.com/HMCL-dev/HMCL/pull/4795
This commit is contained in:
Glavo
2025-11-18 16:55:30 +08:00
committed by GitHub
parent 6375558591
commit 01f0a38f1c
@@ -64,6 +64,8 @@ public final class DecoratorAnimationProducer implements AnimationProducer {
new KeyValue(center.translateXProperty(), 30, Interpolator.EASE_BOTH)));
}
keyFrames.add(new KeyFrame(Duration.ZERO,
new KeyValue(next.opacityProperty(), 0, Interpolator.EASE_BOTH)));
keyFrames.add(new KeyFrame(halfDuration,
new KeyValue(next.opacityProperty(), 0, Interpolator.EASE_BOTH)));
keyFrames.add(new KeyFrame(handler.getDuration(),