Quellcode durchsuchen

Fixed minor bug : quicklty pointing alternatively Script button and Close button on a tab showed both buttons as hovered

Julian Murgia - StraToN vor 10 Jahren
Ursprung
Commit
f256e421b5
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      scene/gui/tabs.cpp

+ 2 - 0
scene/gui/tabs.cpp

@@ -103,11 +103,13 @@ void Tabs::_input_event(const InputEvent& p_event) {
 			// test hovering right button and close button
 			if (tabs[i].rb_rect.has_point(pos)) {
 				rb_hover=i;
+				cb_hover=-1;
 				hover_buttons = i;
 				break;
 			}
 			else if (tabs[i].cb_rect.has_point(pos)) {
 				cb_hover=i;
+				rb_hover=-1;
 				hover_buttons = i;
 				break;
 			}