fix(app): timeline jank

This commit is contained in:
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

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"))