@marijn This is a demo that can be reproduced completely. When the total number of rows exceeds 20 and the scroll bar is not at the top, continue typing or press Enter to reproduce it perfectly.
The premise is that it must be entered in the first 2 lines
1.qeustion desc
2.qeustion desc
Content like this
When there are more lines that satisfy the regularity, the position of the cursor and scroll bar is more wrong /^\s*(\d+)[\.. . , \::, \s\/\\\))]+(?:(?:\[|[|「)(.*?)(?:\]|」|】))?(.*) $/
This demo (demo) ensures that you can reproduce this problem, excuse me, please take a look again, thank you
It seems that the problem is that the line widget is added, which causes the scroll height to be incorrect, and then when inputting content, the cursor is positioned incorrectly
I’m really done going in circles on this. Still not seeing the problem on that last link, and you still haven’t told me which browser you’re testing with.
I see this as well. Below is my screen capture. I just scroll to the end of the document, and type one character at the end of the line with “xxx” in it, the document scrolls up, then I scroll down again and type one more character, etc. I am on the latest Chrome, on OSX. HTH.
I’m really sorry, I’m using the chorme 96 , as the friend above said, when typing at the bottom of the document, it will scroll up.
Firefox is also the latest, and this problem is the same. In addition, my CodeMirror version is 5.48.2