You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When word wrap is off; dragging the vertical scroll thumb through many lines (With varying lengths) interaction will be dropped frequently.
This is not a problem if word wrap is on, or if there are no lines extend past the edge of the editor window.
To Reproduce
Word wrap set to false, and lines of different lengths that extend past the right edge (that require horizontal scrolling)
Expected behavior
Should be able to click and drag the thumb from top to bottom.
Device:
OS: Windows
Version 11
Additional context
I tracked it down to an issue with recalculating the width for the horizontal scrollbar.
When vertically scrolling, any time the longest line in the _displayparagraphs changes; the horizontal scrollbar updates and interaction with the handle is lost.
Not a proper solution; but my quick workaround is adding a function in code_lines to iterate through and return the longest segment
Then in _code_field final double maxWidth = (_codes.longestSegmentLength * 6).reduce(max); //_displayParagraphs.map((e) => e.width).reduce(max);
Reacted by Dominik Roszkowski, 1ven and TechnicJelle
Activity
1vener commentedon Apr 29, 2025
Any progress?
1vener commentedon Apr 30, 2025
It will only appear in higher versions. After testing, version 3.22.2 is functioning properly, while version 3.27.0 reproduces this bug.