Close #3728: 为更新日志对话框添加平滑滚动 (#3729)

This commit is contained in:
Wulian233 2025-03-08 22:35:51 +08:00 committed by GitHub
parent cf56c8035b
commit 57903da09b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ public final class UpgradeDialog extends JFXDialogLayout {
if (exception == null) { if (exception == null) {
ScrollPane scrollPane = new ScrollPane(result); ScrollPane scrollPane = new ScrollPane(result);
scrollPane.setFitToWidth(true); scrollPane.setFitToWidth(true);
FXUtils.smoothScrolling(scrollPane);
setBody(scrollPane); setBody(scrollPane);
} else { } else {
LOG.warning("Failed to load update log, trying to open it in browser"); LOG.warning("Failed to load update log, trying to open it in browser");