Skip to content

Unusual scrolling on some devices #1663

@kojoe-code

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

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