Handle deleted threads

This commit is contained in:
Jon Staab
2024-10-24 11:52:02 -07:00
parent 33c8142eda
commit dd7c0f3b07
13 changed files with 102 additions and 68 deletions
+5 -3
View File
@@ -18,10 +18,12 @@
}
const onMouseMove = throttle(300, ({clientX, clientY}: any) => {
const {x, y, width, height} = popover.popper.getBoundingClientRect()
if (popover) {
const {x, y, width, height} = popover.popper.getBoundingClientRect()
if (!between([x, x + width], clientX) || !between([y - 30, y + height + 30], clientY)) {
popover.hide()
if (!between([x, x + width], clientX) || !between([y - 30, y + height + 30], clientY)) {
popover.hide()
}
}
})
+2 -1
View File
@@ -3,12 +3,13 @@
export let href
export let external = false
export let replaceState = false
const go = (e: Event) => {
if (!external) {
e.preventDefault()
goto(href)
goto(href, {replaceState})
}
}
</script>