summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2018-11-24 14:01:34 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2018-11-24 14:03:54 +0000
commit9e57c359b769bef1a5659079b7c4fdccee08d4cb (patch)
tree3eed6a558b74bca2ab0b1f0b7b8be2a62690733f /scene
parent8348aca118311b82f632781b19230471fae56d4a (diff)
Fix scroll bar lock when smooth scroll enabled, issue 23314
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/scroll_bar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/scroll_bar.cpp b/scene/gui/scroll_bar.cpp
index 07380f45cc..0e68476439 100644
--- a/scene/gui/scroll_bar.cpp
+++ b/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);
}