aboutsummaryrefslogtreecommitdiff
path: root/client/gui/components
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-21 17:59:28 +0200
committertpart <tpart120@proton.me>2025-09-21 17:59:28 +0200
commit3ce0811efce6e85d65559311d581555f486c26ad (patch)
tree4d04a32361cc5c49332e84e4a7f6b727b083f193 /client/gui/components
parent49cb601d1dfceb7dc717fd3a231486db757d923d (diff)
downloadhurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar
hurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar.bz2
hurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar.zst
Make touch scrolling only local (Fix #370)
Diffstat (limited to 'client/gui/components')
-rw-r--r--client/gui/components/touch_scroll_container.gd3
1 files changed, 2 insertions, 1 deletions
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