Keeps the reader's place when a link only changes the page's own query #48
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/swap-keep-scroll"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every in-place swap landed at the top of the page, so the Profit page's option links (fee deep-dive, scale, turnover readout, spans, grain, owner) threw the reader back to the top on every switch. A navigation whose target path equals the current path now keeps the scroll position, and the pushed history entry records it; a link to a different page still starts at the top. Verified in Chromium (Blink): fee deep-dive at scroll 505 stays 505, Indexed at 179 stays 179, Retention % at 1007 stays 1007. All 122 JS tests pass.