fix(app): timeline jank
parent
10c325810b
commit
fd4d3094bf
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue