Allow tapping on tippy triggers on mobile

This commit is contained in:
Jon Staab
2025-07-31 10:25:55 -07:00
parent 0a5bc618c2
commit 0cc0598287
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -3,6 +3,7 @@
import tippy from "tippy.js"
import {onMount, mount} from "svelte"
import {isMobile} from "@lib/html"
let {
component,
@@ -23,6 +24,7 @@
content: target,
animation: "shift-away",
appendTo: document.querySelector(".tippy-target")!,
trigger: isMobile ? "click" : "mouseenter focus",
...params,
})