mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-09-14 06:50:20 +00:00
Fix 1px scroll offset on page navigation when Pjax is enabled (#995)
This commit is contained in:
parent
3e4d43597d
commit
d25776ea38
@ -26,7 +26,8 @@ const pjax = new Pjax({
|
|||||||
},
|
},
|
||||||
analytics: false,
|
analytics: false,
|
||||||
cacheBust: 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', () => {
|
document.addEventListener('pjax:success', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user