Merge pull request #103670 from dugramen/inspector-section-hover
Redraw inspector section when cursor enters and exits header to update hover state
This commit is contained in:
@ -1888,6 +1888,15 @@ void EditorInspectorSection::gui_input(const Ref<InputEvent> &p_event) {
|
||||
} else if (mb.is_valid() && !mb->is_pressed()) {
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
Ref<InputEventMouseMotion> mm = p_event;
|
||||
if (mm.is_valid()) {
|
||||
int header_height = _get_header_height();
|
||||
Vector2 previous = mm->get_position() - mm->get_relative();
|
||||
if ((mm->get_position().y >= header_height) != (previous.y >= header_height)) {
|
||||
queue_redraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String EditorInspectorSection::get_section() const {
|
||||
|
||||
Reference in New Issue
Block a user