Skip to content

[Bug] TUI movement too fast on MacBook TouchBar causing rapid screen scrolling #2795

@mahidalhan

Description

@mahidalhan

Bug Description

The OpenCode TUI interface moves/scrolls too quickly when interacting with it on MacBook devices, particularly when using the TouchBar. This causes the interface to rapidly scroll through content, making it difficult to navigate and read the output effectively.

Expected Behavior

  • TUI should scroll at a reasonable, controllable speed
  • Users should be able to navigate through the interface smoothly
  • TouchBar interactions should provide precise control over scrolling

Actual Behavior

  • TUI scrolls extremely fast through content
  • Makes it nearly impossible to read or interact with the interface effectively
  • TouchBar seems to trigger rapid, uncontrollable scrolling

Comparison with Other Tools

Important: This issue is specific to OpenCode. Other similar tools work correctly:

  • Claude Code scrolling works perfectly with TouchBar - no speed issues
  • Files in Cursor IDE scroll at normal, expected speeds with TouchBar
  • This suggests the issue is specific to OpenCode's TUI implementation

Environment

  • Platform: macOS
  • Device: MacBook with TouchBar
  • **OpenCode Version: 0.11.3
  • Terminal: Cursor IDE

Steps to Reproduce

  1. Launch OpenCode in terminal
  2. Interact with the TUI using TouchBar or trackpad scrolling
  3. Observe rapid, uncontrollable scrolling behavior
  4. Compare with Claude Code or Cursor IDE for reference

Additional Context

This issue specifically affects the usability of OpenCode on MacBook devices with TouchBar functionality. The scroll sensitivity appears to be too high for the TouchBar's input characteristics.

**Video demonstration provided"

Possible Solutions

  • Add scroll sensitivity configuration options
  • Implement scroll speed dampening for TouchBar devices
  • Add scroll acceleration/deceleration curves similar to other macOS applications
  • Study how Claude Code handles TouchBar scrolling for reference

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions