Skip to content

Selection highlight remains on first wrapped line when dragging back to second line start with lineWrapping enabled #1686

@lishuangfeng

Description

@lishuangfeng

Describe the issue

When lineWrapping is enabled in CodeMirror, a visual selection rendering issue occurs specifically on Huawei tablet devices. After performing a cross-line selection (selecting across multiple wrapped lines) and then dragging the mouse/touch back to the start of the second wrapped line, the highlight on the first wrapped line fails to clear visually. Notably, the underlying selection range data is correct — the issue is purely a rendering/layout artifact. This does not occur on all devices .

I am using codemirror/view version 6.0.0

Browser and platform

Huawei tablet

Reproduction link

No response

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