diff options
author | Julian Murgia - StraToN <the.straton@gmail.com> | 2015-10-19 12:26:19 +0200 |
---|---|---|
committer | Julian Murgia - StraToN <the.straton@gmail.com> | 2015-10-19 12:26:19 +0200 |
commit | f256e421b52f248f76a7cb116c49f781f089aa49 (patch) | |
tree | 365b3922af1b0ed7fb3de8b3b7087100d6384b32 | |
parent | 17fbd2067385aa3bcbfd676192cb57a9735596cf (diff) |
Fixed minor bug : quicklty pointing alternatively Script button and Close button on a tab showed both buttons as hovered
-rw-r--r-- | scene/gui/tabs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |