fix(app): stop mobile web sidebars from intercepting taps when closed

This commit is contained in:
Mohamed Boudra
2026-02-17 20:05:20 +07:00
parent 93ec537095
commit 16ea92aec5
2 changed files with 6 additions and 4 deletions
@@ -240,8 +240,9 @@ export function ExplorerSidebar({ serverId, agentId, cwd, isGit }: ExplorerSideb
width: resizeWidth.value,
}));
// Mobile: full-screen overlay with gesture
const overlayPointerEvents = Platform.OS === "web" ? "auto" : "box-none";
// Mobile: full-screen overlay with gesture.
// On web, keep it interactive only while open so closed sidebars don't eat taps.
const overlayPointerEvents = Platform.OS === "web" ? (isOpen ? "auto" : "none") : "box-none";
if (isMobile) {
return (