Skip to content

Commit 7f6571e

Browse files
committed
Fix regression from #3834 causing sub-menu lists to close if outside their hover stray distance
1 parent 187b4c3 commit 7f6571e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/layout/FloatingMenu.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
322322
// POINTER STRAY
323323
// Close the floating menu if the pointer has strayed far enough from its bounds (and it's not hovering over its own spawner)
324-
const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner || (ownSpawner === undefined && targetSpawner === undefined);
324+
const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner;
325325
if (strayCloses && notHoveringOverOwnSpawner && isPointerEventOutsideFloatingMenu(e, POINTER_STRAY_DISTANCE)) {
326326
// TODO: Extend this rectangle bounds check to all submenu bounds up the DOM tree since currently submenus disappear
327327
// TODO: with zero stray distance if the cursor is further than the stray distance from only the top-level menu

0 commit comments

Comments
 (0)