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

Restore diagonal movement of selections with arrow keys

This commit is contained in:
Emmanouil Papadeas 2024-07-13 20:38:04 +03:00
parent d50ae3b00e
commit d685177918

View file

@ -218,7 +218,8 @@ func _move_with_arrow_keys(event: InputEvent) -> void:
move.x = 0
if is_zero_approx(absf(move.y)):
move.y = 0
move_content(move * step)
var final_direction := (move * step).round()
move_content(final_direction)
## Check if an event is a ui_up/down/left/right event pressed