Description
The Explorer scroll position is not preserved during SPA navigation.
When the Explorer tree is long and I scroll down, clicking a note causes the left sidebar to scroll back toward the top.
Investigation
The Explorer currently saves the scroll position from .explorer-ul:
const explorer = document.querySelector(".explorer-ul");
sessionStorage.setItem("explorerScrollTop", explorer.scrollTop.toString());
However, while the Explorer was scrolled down, I checked the scroll positions in the browser console:
.explorer-content → 0
.explorer-ul → 0
.sidebar.left → 6200
In my layout, .sidebar.left appears to be the actual scrolling element.
Changing the save/restore target from .explorer-ul to .sidebar.left fixed the issue.
Environment
- Quartz 5
- Explorer 0.1.0
- SPA enabled
- Windows / Chromium
Description
The Explorer scroll position is not preserved during SPA navigation.
When the Explorer tree is long and I scroll down, clicking a note causes the left sidebar to scroll back toward the top.
Investigation
The Explorer currently saves the scroll position from
.explorer-ul:However, while the Explorer was scrolled down, I checked the scroll positions in the browser console:
In my layout,
.sidebar.leftappears to be the actual scrolling element.Changing the save/restore target from
.explorer-ulto.sidebar.leftfixed the issue.Environment