From 3ce0811efce6e85d65559311d581555f486c26ad Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 21 Sep 2025 17:59:28 +0200 Subject: Make touch scrolling only local (Fix #370) --- client/gui/components/touch_scroll_container.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/gui/components/touch_scroll_container.gd') diff --git a/client/gui/components/touch_scroll_container.gd b/client/gui/components/touch_scroll_container.gd index 41aa34c0..c6c1393b 100644 --- a/client/gui/components/touch_scroll_container.gd +++ b/client/gui/components/touch_scroll_container.gd @@ -42,4 +42,5 @@ func _process(delta): func _input(event): if event is InputEventScreenDrag: - velocity = -(scroll_vertical - (scroll_vertical - event.relative.y)) * .1 + if Rect2(global_position, size).has_point(event.position): + velocity = -(scroll_vertical - (scroll_vertical - event.relative.y)) * .1 -- cgit v1.2.3-70-g09d2