1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 00:59:47 +00:00

Set input as handled when dragging on a ValueSlider

This commit is contained in:
Emmanouil Papadeas 2024-12-20 00:20:37 +02:00
parent 360aa250c4
commit b4fbb1df75

View file

@ -166,6 +166,7 @@ func _gui_input(event: InputEvent) -> void:
else:
if event.ctrl_pressed:
value = roundf(value / snap_step) * snap_step
get_viewport().set_input_as_handled()
func _setup_nodes() -> void: ## Only called once on _ready()