mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Fix regression from #3834 causing sub-menu lists to close if outside their hover stray distance
This commit is contained in:
@@ -321,7 +321,7 @@
|
|||||||
|
|
||||||
// POINTER STRAY
|
// 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)
|
// 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)) {
|
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: 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
|
// TODO: with zero stray distance if the cursor is further than the stray distance from only the top-level menu
|
||||||
|
|||||||
Reference in New Issue
Block a user