Skip to content

Commit

Permalink
Merge pull request #12159 from RandomShaper/fix-sticky-slider
Browse files Browse the repository at this point in the history
Reset slider mouse state on hiding/removing
  • Loading branch information
groud authored Oct 20, 2017
2 parents 3971bd4 + 807a84f commit 5e348e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scene/gui/slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ void Slider::_notification(int p_what) {
mouse_inside = false;
update();
} break;
case NOTIFICATION_VISIBILITY_CHANGED: // fallthrough
case NOTIFICATION_EXIT_TREE: {

mouse_inside = false;
grab.active = false;
} break;
case NOTIFICATION_DRAW: {
RID ci = get_canvas_item();
Size2i size = get_size();
Expand Down

0 comments on commit 5e348e7

Please sign in to comment.