Fix 1px scroll offset on page navigation when Pjax is enabled (#995)

This commit is contained in:
雨奇晴好 2026-09-08 10:35:06 +08:00 committed by GitHub
parent 3e4d43597d
commit d25776ea38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,8 @@ const pjax = new Pjax({
},
analytics: false,
cacheBust: false,
scrollTo : !CONFIG.bookmark.enable
// scrollTo accepts a number (vertical offset), a number array ([x, y]), or false (do not scroll).
scrollTo : CONFIG.bookmark.enable ? false : 0
});
document.addEventListener('pjax:success', () => {