修复bug

This commit is contained in:
zqlit committed 2026-05-24 19:58:07 +08:00
1 parent e382dc36a5
commit 331af9074a
121 files changed
+323 -210

No files matched your search

@@ -96,10 +96,7 @@ window.initFloatingTools = function() {
backToTopButton.addEventListener('click', function(e) {
e.preventDefault();
window.scrollTo({
top: 0,
behavior: 'smooth'
});
window.scrollTo({ top: 0, behavior: 'smooth' });
});
}
@@ -186,7 +183,7 @@ window.initFloatingTools = function() {
e.preventDefault();
var comments = document.getElementById('Comments') || document.querySelector('.artalk');
if (comments) {
comments.scrollIntoView({ behavior: 'smooth' });
comments.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
}