Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

[Bug] Cursor jumps to next line start when tapping end of wrapped line after pinch-zoom on touchscreen #1677

@lishuangfeng

Description

@lishuangfeng

Describe the issue

When lineWrapping is enabled in CodeMirror 6, after performing a pinch-to-zoom gesture on a touchscreen device, tapping on the blank area at the end of a wrapped line causes the cursor to be positioned at the start of the next line, rather than the end of the current logical line.

Browser and platform

HUAWEI Browser

Reproduction link

https://codemirror.net/try/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions