From 7f6571ee528aafe0039b227ebf1f2ed71ff6f655 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Wed, 18 Mar 2026 15:53:48 -0700 Subject: [PATCH] Fix regression from #3834 causing sub-menu lists to close if outside their hover stray distance --- frontend/src/components/layout/FloatingMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/layout/FloatingMenu.svelte b/frontend/src/components/layout/FloatingMenu.svelte index ba69a4ba..a16132f8 100644 --- a/frontend/src/components/layout/FloatingMenu.svelte +++ b/frontend/src/components/layout/FloatingMenu.svelte @@ -321,7 +321,7 @@ // POINTER STRAY // Close the floating menu if the pointer has strayed far enough from its bounds (and it's not hovering over its own spawner) - const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner || (ownSpawner === undefined && targetSpawner === undefined); + const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner; if (strayCloses && notHoveringOverOwnSpawner && isPointerEventOutsideFloatingMenu(e, POINTER_STRAY_DISTANCE)) { // TODO: Extend this rectangle bounds check to all submenu bounds up the DOM tree since currently submenus disappear // TODO: with zero stray distance if the cursor is further than the stray distance from only the top-level menu