Use publishThunks

This commit is contained in:
Jon Staab
2024-11-12 14:32:36 -08:00
parent e656c5cbb1
commit 48e2fff4f8
16 changed files with 110 additions and 72 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
const onTouchEnd = () => clearTimeout(timeout)
let touch: Touch
let timeout: number
let timeout: any
</script>
<div
+6 -1
View File
@@ -16,7 +16,7 @@ export const copyToClipboard = (text: string) => {
return result
}
type ScrollerOpts = {
export type ScrollerOpts = {
onScroll: () => any
element: Element
threshold?: number
@@ -24,6 +24,11 @@ type ScrollerOpts = {
delay?: number
}
export type Scroller = {
check: () => Promise<void>
stop: () => void
}
export const createScroller = ({
onScroll,
element,