From f256e421b52f248f76a7cb116c49f781f089aa49 Mon Sep 17 00:00:00 2001 From: Julian Murgia - StraToN Date: Mon, 19 Oct 2015 12:26:19 +0200 Subject: Fixed minor bug : quicklty pointing alternatively Script button and Close button on a tab showed both buttons as hovered --- scene/gui/tabs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 6d84f028b3..10b1a626f0 100644 --- a/scene/gui/tabs.cpp +++ b/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; } -- cgit v1.2.3