back/forward scroll restoration lands clamped to the outgoing page
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- Java
- Stelle
- 2.1k
- Fork
- 362
- Merge medio
- 1g 3h
- PR unite (30g)
- 44
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-openvsx/openvsx
-
`ovsx verify` fails for a version older than the 100 newest of an extensionForse già presa @trivikr l’ha presa oggi. Apertacli
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
eclipse-openvsx/openvsx#2482 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eclipse-openvsx/openvsx#2469 ·
I maintainer di solito rispondono entro 1 giorno
-
cli
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
eclipse-openvsx/openvsx#2423 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
eclipse-openvsx/openvsx#2476 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
eclipse-openvsx/openvsx#2439 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-openvsx/openvsx
Issue simili
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespaceForse già presa @Beehtrix l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cimug-org/CIMTool#427 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrativeForse già presa @xmhorsehead l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hapifhir/hapi-fhir#8952 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Skip installing contributed bundle when existing same-version bundle cannot be uninstalledForse già presa @wenytang-ms l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-jdtls/eclipse.jdt.ls#4004 ·
I maintainer di solito rispondono entro 1 giorno
-
[🐞]: Moonlight 3.9.0 dedicated server crash - CreateWorldScreenMixin targets missing client classAperta1.21 bug FABRIC server
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MehVahdJukaar/Moonlight#506 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
godotengine/godot#126005 ·
I maintainer di solito rispondono entro 1 giorno