diff options
author | tpart <tpart120@proton.me> | 2025-09-21 17:59:28 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-09-21 17:59:28 +0200 |
commit | 3ce0811efce6e85d65559311d581555f486c26ad (patch) | |
tree | 4d04a32361cc5c49332e84e4a7f6b727b083f193 | |
parent | 49cb601d1dfceb7dc717fd3a231486db757d923d (diff) | |
download | hurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar hurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar.bz2 hurrycurry-3ce0811efce6e85d65559311d581555f486c26ad.tar.zst |
Make touch scrolling only local (Fix #370)
-rw-r--r-- | client/gui/components/touch_scroll_container.gd | 3 |
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 |