mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-23 19:48:28 +00:00
Fix bug in cursor_in_finder computation
This commit is contained in:
parent
50b2ff94b2
commit
1f79e61a72
@ -196,9 +196,9 @@ where
|
|||||||
delayed_responses.push(NodeResponse::CreatedNode(new_node));
|
delayed_responses.push(NodeResponse::CreatedNode(new_node));
|
||||||
}
|
}
|
||||||
let finder_rect = ui.max_rect();
|
let finder_rect = ui.max_rect();
|
||||||
// If the cursor is not in the main editor, check if the cursor *is* in the finder
|
// If the cursor is not in the main editor, check if the cursor is in the finder
|
||||||
// if the cursor is in the finder, then we can consider that also in the editor.
|
// if the cursor is in the finder, then we can consider that also in the editor.
|
||||||
if !cursor_in_editor && finder_rect.contains(cursor_pos) {
|
if finder_rect.contains(cursor_pos) {
|
||||||
cursor_in_editor = true;
|
cursor_in_editor = true;
|
||||||
cursor_in_finder = true;
|
cursor_in_finder = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user