You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Implement properties that recursively disables children's focus & mouse filter.
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
@@ -1198,7 +1198,7 @@ bool GraphEdit::_check_clickable_control(Control *p_control, const Vector2 &mpos
|
||||
control_rect.size *= zoom;
|
||||
control_rect.position += p_offset;
|
||||
|
||||
if (!control_rect.has_point(mpos) || p_control->get_mouse_filter() == MOUSE_FILTER_IGNORE) {
|
||||
if (!control_rect.has_point(mpos) || p_control->get_mouse_filter_with_recursive() == MOUSE_FILTER_IGNORE) {
|
||||
// Test children.
|
||||
for (int i = 0; i < p_control->get_child_count(); i++) {
|
||||
Control *child_rect = Object::cast_to<Control>(p_control->get_child(i));
|
||||
|
||||
Reference in New Issue
Block a user