瀏覽代碼

Merge pull request #2635 from StraToN/tabs-buttons

Fixed bug : both tab buttons appearing hovered
Juan Linietsky 9 年之前
父節點
當前提交
75922c57d6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scene/gui/tabs.cpp

+ 2 - 0
scene/gui/tabs.cpp

@@ -102,11 +102,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;
 			}