#1663·dev

Unusual scrolling on some devices

Author: kojoe-codeCreated Jan 23, 2026Updated Apr 15, 2026

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

javascript
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()],
});

https://github.com/user-attachments/assets/871d2c61-9676-4cfc-8c14-47997fc99453

Browser and platform

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

Reproduction link

_No respon