diff --git a/frontend/src/components/BottomBar.tsx b/frontend/src/components/BottomBar.tsx index f917ac6..eab3c57 100644 --- a/frontend/src/components/BottomBar.tsx +++ b/frontend/src/components/BottomBar.tsx @@ -31,9 +31,14 @@ export function BottomBar({ onMenu }: { onMenu: () => void }) { holdTimer.current = null; } }; - const endHold = () => { - clearHold(); - if (!holdFired.current) onMenu(); // обычный тап + // Открытие меню — на нативном onClick (надёжно на мобильных, в отличие от pointerup, + // который не приходит при pointercancel). Долгий зажим подавляет этот клик. + const onMenuClick = () => { + if (holdFired.current) { + holdFired.current = false; + return; + } + onMenu(); }; const onCreate = () => { @@ -57,8 +62,9 @@ export function BottomBar({ onMenu }: { onMenu: () => void }) {