Steps to reproduce: 1. Go to https://codemirror.net/5/demo/folding.html 2. In dev tools, set container width to a fixed value, for example 300px. Expected behavior: selection within editable area works normally. What actually happens: you can select blank areas, set cursor to blank area. <img width="1342" height="764" alt="Image" src="https://github.com/user-attachments/assets/ecfcd303-a2a0-4f10-838e-ab4ea8746576" />
Steps to reproduce:
Expected behavior: selection within editable area works normally.
What actually happens: you can select blank areas, set cursor to blank area.