From d68517791857de7cdbeab14887256e920b80c184 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 13 Jul 2024 20:38:04 +0300 Subject: [PATCH] Restore diagonal movement of selections with arrow keys --- src/UI/Canvas/Selection.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Canvas/Selection.gd b/src/UI/Canvas/Selection.gd index 2e63972d8..4c08f38e7 100644 --- a/src/UI/Canvas/Selection.gd +++ b/src/UI/Canvas/Selection.gd @@ -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