nand2tetris / web-ide

A web-based IDE for https://nand2tetris.org
https://nand2tetris.github.io/web-ide
Other
38 stars 11 forks source link

[bug]: cursor jumps to end of program after every change #314

Closed isaaclyman closed 1 month ago

isaaclyman commented 1 month ago

Program

Assembler

Interface

Website (https://nand2tetris.github.io/web-ide)

Contact Details

mail@isaaclyman.com

What happened?

When editing text in the Assembler "Source" pane, the cursor jumps to the end of the file after every change, which makes editing your code extremely difficult.

Ideally, I would expect the editor to behave like other online code editors, and not jump the cursor to the end of the file without a corresponding keyboard or mouse command.

Alternatively, if that pane is not meant to be used for text editing, it should be read-only or advise the user to do their work in another editor and copy-paste it over when ready.

Browser: Firefox 126.0 (64-bit) OS: Windows 11 Enterprise 23H2

Additional Comments

No response

Do you want to try to fix this bug?

Code of Conduct

isaaclyman commented 1 month ago

Can confirm it's fixed on my machine. Thank you!