Skip to content

Desktop: no auto-scroll while drag-selecting near the left/right edge in single-line / no-wrap content #98

Description

@zundaren

Summary

When using CodeForge on desktop with lineWrap: false, drag-selecting text toward the left/right edge does not auto-scroll horizontally.

This makes it difficult to select long single-line content, such as minified JSON, long URLs, or compressed text.

There also seems to be a related horizontal scrolling issue where very long single-line content can feel clipped at the far right edge unless extra padding is added externally.

Environment

  • Package: code_forge
  • Version: 10.11.0
  • Platform: Flutter desktop
  • Reproduced on: Windows

Reproduction

Use a basic editor like this:

CodeForge(
  controller: controller,
  lineWrap: false,
)

Then:

Paste a very long single-line text
Click inside the line
Hold the left mouse button and drag the selection toward the right edge of the editor
Keep dragging beyond the visible area

Expected behavior
The editor should automatically scroll horizontally while the selection drag is held near the left or right edge, so selection can continue beyond the visible viewport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions