kopia lustrzana https://github.com/elk-zone/elk
TMP: feat: scroll to top after loading new items by `.` shortcut key but this is not working when `showNewItems()` takes time
rodzic
8ad05dfd47
commit
da3b134d18
|
@ -75,5 +75,8 @@ export default defineNuxtPlugin(({ $scrollToTop }) => {
|
|||
?.querySelector<HTMLElement>('button#elk_show_new_items')
|
||||
?.click()
|
||||
}
|
||||
whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), showNewItems)
|
||||
whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), () => {
|
||||
showNewItems()
|
||||
;($scrollToTop as () => void)()
|
||||
})
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue