[PR #628] [MERGED] fix mouse scroll events being interpreted as keyboard input #9667

Closed
opened 2026-02-16 18:13:57 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/628
Author: @andrewxt
Created: 7/2/2025
Status: Merged
Merged: 7/2/2025
Merged by: @thdxr

Base: devHead: fix/mouse-scroll-interpreted-as-input


📝 Commits (1)

  • 7ae926e fix issue with mouse scroll overflow events being counted as input

📊 Changes

1 file changed (+20 additions, -1 deletions)

View changed files

📝 packages/tui/internal/tui/tui.go (+20 -1)

📄 Description

Fixes an issue where trackpad scrolling with "momentum" like on a macbook would capture all overflow events (scrolling to the bottom before that momentum would have stopped scrolling) and interpret it as keyboard input like "5;40;37M;37M5;40". Leveraged the existing BUGGED_SCROLL_KEYS, to add a safer guard to prevent it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/628 **Author:** [@andrewxt](https://github.com/andrewxt) **Created:** 7/2/2025 **Status:** ✅ Merged **Merged:** 7/2/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix/mouse-scroll-interpreted-as-input` --- ### 📝 Commits (1) - [`7ae926e`](https://github.com/anomalyco/opencode/commit/7ae926ed633efa371a9daaed700e8d4996391211) fix issue with mouse scroll overflow events being counted as input ### 📊 Changes **1 file changed** (+20 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/tui/tui.go` (+20 -1) </details> ### 📄 Description Fixes an issue where trackpad scrolling with "momentum" like on a macbook would capture all overflow events (scrolling to the bottom before that momentum would have stopped scrolling) and interpret it as keyboard input like "5;40;37M;37M5;40". Leveraged the existing `BUGGED_SCROLL_KEYS`, to add a safer guard to prevent it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:57 -05:00
yindo closed this issue 2026-02-16 18:13:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9667