summaryrefslogtreecommitdiff
path: root/client/menu/scroll_container_custom.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-08-07 11:47:18 +0200
committernokoe <nokoe@mailbox.org>2024-08-07 11:47:18 +0200
commitea7078534d01d115cbc1f4c494526affc5858acc (patch)
tree230231b4a0c77634aaa59643b44ef7479aab7a91 /client/menu/scroll_container_custom.gd
parent25b2a10353d015392f37e1d4ad5d1f695de34eb3 (diff)
downloadhurrycurry-1.4.0.tar
hurrycurry-1.4.0.tar.bz2
hurrycurry-1.4.0.tar.zst
fix some warningsv1.4.0
Diffstat (limited to 'client/menu/scroll_container_custom.gd')
-rw-r--r--client/menu/scroll_container_custom.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/menu/scroll_container_custom.gd b/client/menu/scroll_container_custom.gd
index b3ce4e46..73780ae2 100644
--- a/client/menu/scroll_container_custom.gd
+++ b/client/menu/scroll_container_custom.gd
@@ -23,7 +23,7 @@ var velocity := 0.
func _process(delta):
velocity = G.interpolate(velocity, 0., delta * 5.)
- velocity = 0 if abs(velocity) < .001 else velocity
+ velocity = 0. if abs(velocity) < .001 else velocity
if Input.get_axis("scroll_up", "scroll_down") != 0.:
velocity = Input.get_axis("scroll_up", "scroll_down")
set_deferred("scroll_vertical", scroll_vertical + velocity * delta * SCROLL_SPEED)