WCF icon indicating copy to clipboard operation
WCF copied to clipboard

Codemirror loses the position of the content

Open cls-design opened this issue 2 months ago • 3 comments

Codemirror loses the position of the content when switching tabs if there are more than 306 lines.

For example, if you switch tabs at line 600 and then jump back, the content always scrolls back to line 306. This does not happen with lines below 306. I'm not sure why it happens at 306, but it may have something to do with the viewport.

Perhaps it's just a minor issue and easy to fix. Currently, it's very difficult to copy CSS variables from the other tab.

cls-design avatar Oct 29 '25 21:10 cls-design