Skip to content

Cursor jumps to previous line in script editor when clicking near a line's center #79735

@scumborg

Description

@scumborg

Godot version

v4.1.1.stable.official

System information

Godot v4.1.1.stable - macOS 13.2.1 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

Issue description

Clicking slightly above the horizontal center of a line in the script editor causes the cursor to incorrectly move to the line above.

Godot.misaligned.cursor.placement.example.mov

Godot misaligned cursor placement example

Steps to reproduce

  1. Navigate to a script with some text in it.
  2. Click on a line in the script editor slightly above the horizontal center of the line.
  3. Observe that the cursor is placed on the line above the one that was clicked, rather than on the line where the click occurred.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions