mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-12 08:43:08 +00:00
ValueSlider arrow buttons now respect snap_by_default
This commit is contained in:
parent
ec2dcae8f7
commit
483e7df52e
|
@ -277,6 +277,9 @@ func _on_Value_button_down(direction: int) -> void:
|
||||||
if not editable:
|
if not editable:
|
||||||
return
|
return
|
||||||
# Direction is either 1 or -1
|
# Direction is either 1 or -1
|
||||||
|
if snap_by_default:
|
||||||
|
value += (step if Input.is_action_pressed("ctrl") else snap_step) * direction
|
||||||
|
else:
|
||||||
value += (snap_step if Input.is_action_pressed("ctrl") else step) * direction
|
value += (snap_step if Input.is_action_pressed("ctrl") else step) * direction
|
||||||
arrow_is_held = direction
|
arrow_is_held = direction
|
||||||
_timer.wait_time = echo_arrow_time * 8 # 0.6 with the default value
|
_timer.wait_time = echo_arrow_time * 8 # 0.6 with the default value
|
||||||
|
|
Loading…
Reference in a new issue