Browse Source

Fix scroll bar lock when smooth scroll enabled, issue 23314

Paulb23 6 years ago
parent
commit
9e57c359b7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/gui/scroll_bar.cpp

+ 2 - 0
scene/gui/scroll_bar.cpp

@@ -330,6 +330,8 @@ void ScrollBar::_notification(int p_what) {
 
 				if (Math::abs(vel) >= dist) {
 					set_value(target_scroll);
+					scrolling = false;
+					set_physics_process_internal(false);
 				} else {
 					set_value(get_value() + vel);
 				}