Check for duplicates
Description
When the workspace scale is not 1, the keyboard moves don't always seem to move blocks to the correct position or move in the correct direction. Please see the examples below for reference.
This is not related to #10026 or any other previous move mode issues.
I've seen this a lot in MakeCode (workspace scale 0.9) and it's taken a while to be able to reproduce it in the playground.
Reproduction steps
Priority
No response
Stack trace
Screenshots
Scale at 0.9. UP should eventually visit all of the constrained move positions, but you actually need to press LEFT. If the scale is 1.0, then UP does work as expected.
https://github.com/user-attachments/assets/4f7f21e3-3cf5-4dea-97c4-7ef705b12567
Another example (based on #10026 which is why the position behaviour is different). This needs some faff to setup, but you can that DOWN does nothing when the block is on the top workspace position, and RIGHT is needed to move the block.
https://github.com/user-attachments/assets/91c41106-ba87-4cff-9546-906a66b9e247
Browsers
No response
Check for duplicates
Description
When the workspace scale is not 1, the keyboard moves don't always seem to move blocks to the correct position or move in the correct direction. Please see the examples below for reference.
This is not related to #10026 or any other previous move mode issues.
I've seen this a lot in MakeCode (workspace scale 0.9) and it's taken a while to be able to reproduce it in the playground.
Reproduction steps
Priority
No response
Stack trace
Screenshots
Scale at 0.9. UP should eventually visit all of the constrained move positions, but you actually need to press LEFT. If the scale is 1.0, then UP does work as expected.
https://github.com/user-attachments/assets/4f7f21e3-3cf5-4dea-97c4-7ef705b12567
Another example (based on #10026 which is why the position behaviour is different). This needs some faff to setup, but you can that DOWN does nothing when the block is on the top workspace position, and RIGHT is needed to move the block.
https://github.com/user-attachments/assets/91c41106-ba87-4cff-9546-906a66b9e247
Browsers
No response