Case ce-0131-auto-scroll-lag-rapid-typing · Scenario scenario-auto-scroll-on-typing

Auto-scroll lags during rapid typing near edges

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
scroll cursor typing performance chrome

Phenomenon

When typing rapidly near the edges of a contenteditable element in Chrome, the automatic scrolling to keep the cursor visible lags behind the typing. The scroll happens after multiple characters are typed, causing the cursor to go out of view temporarily.

Reproduction example

  1. Create a contenteditable element with scrollable content
  2. Type text rapidly near the bottom edge
  3. Observe scroll timing

Observed behavior

  • Scroll happens after multiple characters are typed
  • Cursor goes out of view temporarily
  • Scroll catches up eventually
  • User experience is degraded during rapid typing

Expected behavior

  • Scroll should happen immediately
  • Cursor should stay visible
  • Scroll should keep up with typing speed
  • No lag should be noticeable

Browser Comparison

  • Chrome/Edge: Scroll may lag (this case)
  • Firefox: More likely to lag
  • Safari: Scroll timing varies

Notes and possible direction for workarounds

  • Implement custom scroll that happens immediately
  • Use requestAnimationFrame for smooth scrolling
  • Throttle scroll operations appropriately
  • Check cursor position more frequently

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0122-auto-scroll-jarring Windows 11 Desktop or Laptop Any Firefox 120.0 US draft
ce-0131-auto-scroll-lag-rapid-typing Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0161-auto-scroll-performance Windows 11 Desktop or Laptop Any Chrome 120.0 US draft

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: US
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.