mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-24 17:44:49 +00:00
fix(app): timeline jank
This commit is contained in:
@@ -168,6 +168,10 @@ export const useSessionHashScroll = (input: {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
if (typeof window !== "undefined" && "scrollRestoration" in window.history) {
|
||||||
|
window.history.scrollRestoration = "manual"
|
||||||
|
}
|
||||||
|
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
if (!input.sessionID() || !input.messagesReady()) return
|
if (!input.sessionID() || !input.messagesReady()) return
|
||||||
requestAnimationFrame(() => applyHash("auto"))
|
requestAnimationFrame(() => applyHash("auto"))
|
||||||
|
|||||||
Reference in New Issue
Block a user