Replace long press with tap target

This commit is contained in:
Jon Staab
2025-03-03 13:59:38 -08:00
parent 5bba5959f7
commit b399fa8dcc
4 changed files with 24 additions and 38 deletions
+15
View File
@@ -0,0 +1,15 @@
<script lang="ts">
import {isMobile} from "@lib/html"
const {children, onTap, ...restProps} = $props()
const onclick = (event: MouseEvent) => {
if (isMobile) {
onTap(event)
}
}
</script>
<div role="button" tabindex="0" {onclick} {...restProps}>
{@render children()}
</div>