back/forward scroll restoration lands clamped to the outgoing page
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
The custom helper is src/layout/scroll-to-top.tsx; find where the webui mounts declarative <BrowserRouter>. Migrate the default app to createBrowserRouter plus RouterProvider and mount first-party <ScrollRestoration/> so restore runs after the destination commits. Swap forward-link preserveScroll for built-in preventScrollReset and remove the custom component. Done when back/forward from a short page to a long scrolled list lands at the stored offset.
Written by the indexing model from the issue text.
Description
The webui uses the declarative <BrowserRouter>, leaving back/forward scroll restoration to the browser (a small custom component, src/layout/scroll-to-top.tsx, only covers scroll-to-top on forward navigation, which the declarative router does not provide). The limitation: on a same-document pop the browser restores the stored offset synchronously at popstate, while the outgoing page is still in the DOM — react-router v7 commits the new location inside startTransition a frame later — so the landing position is clamped to the outgoing page's height and never corrected. Navigating back from a short page to a long, deeply scrolled list therefore lands well above where the user left, and no layout work can fix it since the destination is not rendered when the browser restores.
The intended fix is migrating the default app to a data router (createBrowserRouter + RouterProvider) and mounting react-router's first-party <ScrollRestoration/>, which restores after the destination commits; that also replaces the custom component (forward links switch from the preserveScroll state to the built-in preventScrollReset).
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 362
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 44
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eclipse-openvsx/openvsx#2469 ·
Maintainers usually reply within 1 day
-
cli
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
eclipse-openvsx/openvsx#2423 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-openvsx/openvsx#2476 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-openvsx/openvsx#2439 · 2 comments ·
Maintainers usually reply within 1 day
All issues in eclipse-openvsx/openvsx
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Magic-team-jvav/confluence#281 ·
-
area/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Difficulty 1/5 Under an hour Newbie friendliness 67/100
Maintainers usually reply within 2 days
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespacePossibly taken @Beehtrix claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cimug-org/CIMTool#427 · 1 comment ·
Maintainers usually reply within 1 day
-
userRaised
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eclipse-openj9/openj9#25285 ·
Maintainers usually reply within 1 day
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativePossibly taken @xmhorsehead claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hapifhir/hapi-fhir#8952 · 2 comments ·
Maintainers usually reply within 1 day