summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:30:31 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:30:31 +0200
commit02e9e2d3c04ef9d63095af35ecd92381c292188e (patch)
tree7d9a769caaf66d141d916e32cfbef7a9ff039faf /scene
parent3a5eac7ca3bc93c5b454d985ed5155683f73002a (diff)
parent186ca020b3174f1a4c550abee141a42afe61fafb (diff)
Merge pull request #66559 from zaevi/fix_ScrollContainer_touch_scroll
Fix ScrollContainer touch-scrolling not working.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/scroll_container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/scroll_container.cpp b/scene/gui/scroll_container.cpp
index 761072c5bc..a6aa4707ff 100644
--- a/scene/gui/scroll_container.cpp
+++ b/scene/gui/scroll_container.cpp
@@ -162,7 +162,7 @@ void ScrollContainer::gui_input(const Ref<InputEvent> &p_gui_input) {
drag_accum = Vector2();
last_drag_accum = Vector2();
drag_from = Vector2(h_scroll->get_value(), v_scroll->get_value());
- drag_touching = !DisplayServer::get_singleton()->screen_is_touchscreen(DisplayServer::get_singleton()->window_get_current_screen(get_viewport()->get_window_id()));
+ drag_touching = DisplayServer::get_singleton()->screen_is_touchscreen(DisplayServer::get_singleton()->window_get_current_screen(get_viewport()->get_window_id()));
drag_touching_deaccel = false;
beyond_deadzone = false;
time_since_motion = 0;