Fixed zoom latch glitch

pull/50/head
unfa 2021-05-24 22:05:17 +02:00
parent 43d91e2e98
commit a03947ff15
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ func _input(event) -> void:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
if Input.is_action_just_pressed("view_zoom"):
#tween.stop_all()
tween.remove_all()
tween.interpolate_property(self, "view_zoom", view_zoom, 4.0, 0.5, Tween.TRANS_SINE, Tween.EASE_IN_OUT)
tween.start()
if Input.is_action_just_released("view_zoom"):
#tween.stop_all()
tween.remove_all()
tween.interpolate_property(self, "view_zoom", view_zoom, 1.0, 0.25, Tween.TRANS_SINE, Tween.EASE_IN_OUT)
tween.start()