fix(app): timeline jank

pull/15847/head^2
Adam 2026-03-03 08:28:56 -06:00
parent 10c325810b
commit fd4d3094bf
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,10 @@ export const useSessionHashScroll = (input: {
})
onMount(() => {
if (typeof window !== "undefined" && "scrollRestoration" in window.history) {
window.history.scrollRestoration = "manual"
}
const handler = () => {
if (!input.sessionID() || !input.messagesReady()) return
requestAnimationFrame(() => applyHash("auto"))