Fix new messages button, improve room load
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import {onMount, tick} from "svelte"
|
||||
import {onMount} from "svelte"
|
||||
import {readable} from "svelte/store"
|
||||
import {page} from "$app/stores"
|
||||
import {goto} from "$app/navigation"
|
||||
@@ -301,7 +301,7 @@
|
||||
|
||||
elements.reverse()
|
||||
|
||||
tick().then(manageScrollPosition)
|
||||
requestAnimationFrame(manageScrollPosition)
|
||||
|
||||
return elements
|
||||
})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import {onMount, tick} from "svelte"
|
||||
import {onMount} from "svelte"
|
||||
import {page} from "$app/stores"
|
||||
import {goto} from "$app/navigation"
|
||||
import type {Readable} from "svelte/store"
|
||||
@@ -232,7 +232,7 @@
|
||||
|
||||
elements.reverse()
|
||||
|
||||
tick().then(manageScrollPosition)
|
||||
requestAnimationFrame(manageScrollPosition)
|
||||
|
||||
return elements
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user