Wrong position change using arrow keys for off-grid elements

I like to move canvas elements using arrow keys. For vertical movements using the down-key, elements sometimes instead jump right.

Steps to reproduce

  • Create a new canvas
  • Insert an element slightly off-grid (y-coordinate not a multiple of 20)
  • tap the down arrow key

E.g.,
{
“nodes”:[
{“id”:“d207bfc7705230a7”,“type”:“text”,“text”:“”,“x”:0,“y”:4,“width”:250,“height”:60}
],
“edges”:
}

Did you follow the troubleshooting guide? [Y/N]

yes

Expected result

  • Element moves 20pt downwards

Actual result

  • Element jumps 20pt right and a few points upward (to the next grid line)

Environment

SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.4.16
Operating system: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 23.4.0
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none