fix(mobile): improved context menu dismissal on iOS and removed white bar on Android

This commit is contained in:
spinline
2026-02-01 16:45:58 +03:00
parent 542cab4249
commit 5773f9d494
2 changed files with 4 additions and 1 deletions

View File

@@ -25,7 +25,10 @@ pub fn ContextMenu(
// Backdrop to catch clicks outside
<div
class="fixed inset-0 z-[99] cursor-default"
role="button"
tabindex="-1"
on:click=move |_| on_close.call(())
on:touchstart=move |_| on_close.call(())
on:contextmenu=move |e| e.prevent_default()
></div>