Typing 'too fast' causes cursor to jump to end of monaco editor
See original GitHub issueEasiest way for me to reproduce this is to load up a scratch and then hold down a key, e.g. /
to add a bunch of slashes. After ~3 the cursor jumps to the bottom of the editor.
I feel like this has something to do with the setState value/set being shared/reused with the editor, i.e. the value of the editor is set via setCCode
. If the call to setCCode is removed, then the problem disappears - however the value of cCode is not set so the value being past to the compiler, so it’s not a solution.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
When I set the value, the cursor moves to the document header.
create a editor with some default values,then i call monacoInstance.setValue('some text');the cursor always move to the head of the first ...
Read more >Cursor jumps or moves randomly while typing in Windows 10
If you find that your mouse cursor jumps or moves on its own, automatically, randomly while typing in Windows laptop or computer, ...
Read more >Cursor jumps while typing : How to fix - YouTube
How to Fix Cursor Pointer Jumping While Typing : If your mouse cursor jumps while you type, you can follow the steps demonstrated...
Read more >January 2022 (version 1.64) - Visual Studio Code
If the Side Panel is not open, just like the bottom Panel, dragging a view to the edge of the editor area, will...
Read more >The Monaco Code Editor | Hacker News
Does anyone know on a technical level why the Monaco editor feels so much faster than the Atom editor? Is there any mechanism...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zbanks found the fix, decouple
value
and usedefaultValue
instead:To update, this happens when you just type two characters in rapid succession. You can reproduce it by just pressing two keys at the same time.