Handle deleted threads
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user