You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix unintended guide chapter scrolling when visit by turbo [skip ci]
When visiting a guide page by turbo, the navHighlight function fires
the scrollIntoView API.
Then, the chapter scrolls to the end of the chapter list by the
updateHighlight function because IntersectionObserver's time origin
is the first page loaded.
To fix this, add "is the page navigated by directly" to the condition
of the call updateHighlight function.
0 commit comments