Skip to content

2 Dimensional scroll issue #64

Open

Description

@kmcgurk-wet

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);

Activity

  1. added
    bug
    on Feb 13, 2025
  2. 1vener commented on Apr 29, 2025

    @1vener

    Any progress?

  3. 1vener commented on Apr 30, 2025

    @1vener

    It will only appear in higher versions. After testing, version 3.22.2 is functioning properly, while version 3.27.0 reproduces this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions