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.

Unusual scrolling on some devices #1663

Open

Description

@kojoe-code

Describe the issue

On some devices, when a keyboard pops up upon clicking a blank line, it scrolls abnormally, even in the opposite direction, making the editor cursor invisible. (The right window in the first demonstration in the video). On some devices, it works normally (left window).

The demo code is as follows

import "./style.css";
import { javascript } from "@codemirror/lang-javascript";
import { monokai } from "@uiw/codemirror-themes-all";
import { EditorView, basicSetup } from "codemirror";

new EditorView({
	doc: "console.log('Hello, world!');\n".repeat(100),
	parent: document.getElementById("editor")!,
	extensions: [basicSetup, monokai, javascript()],
});
01_1.mp4

Browser and platform

Abnormal device: Xiaomi, Android version: 15 , System version: hyper os 3

Reproduction link

_No respon

Activity

  1. kojoe-code commented on Jan 23, 2026

    @kojoe-code
    Author

    To add, this may be related to cr, once in a while, when I paste the code into the editor, I see a red cr logo, even if it is not at the last line or the beginning of a line, as long as I click on this "cr", it will cause abnormal scrolling

    Image
  2. bajrangCoder commented on Feb 8, 2026

    @bajrangCoder

    I have also faced it even on codemirror.net example with some content which can trigger scrolling on mobile

  3. AuDevTist1C commented on Feb 23, 2026

    @AuDevTist1C

    Seems to only happen in Chrome (and any Chromium's dependents, including Brave, Opera, Samsung Internet, and Android WebView):
    https://issues.chromium.org/issues/484891671

  4. marijnh commented on Apr 15, 2026

    @marijnh
    Member

    This issue has been moved to issue #1663 on the repository's new home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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