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