Skip to content

Inserting Tabs in TextView Causes Mouse to Incorrectly Position Cursor #4726

@YourRobotOverlord

Description

@YourRobotOverlord

Describe the bug

When clicking to reposition the cursor, the cursor position is offset relative to the number of inserted tabs if clicking after an inserted tab.

To Reproduce

Steps to reproduce the behavior:

  1. Run the Text Input Controls scenario.
  2. Insert a tab into the TextView.
  3. Use the mouse to click a position after the tabstop.

Expected behavior:
Cursor should move to clicked position.

Actual behavior:
Cursor moves to a position offset to the left of the clicked position.
The amount offset seems to be related to the number of tabstops inserted.

Image

OS Information

Repros on Windows 11 and Debian 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions