[PR #203] [MERGED] Fix scroll acceleration on Ghostty #1151

Closed
opened 2026-03-14 09:21:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/203
Author: @remorses
Created: 10/8/2025
Status: Merged
Merged: 10/8/2025
Merged by: @kommander

Base: mainHead: scroll-acceleration-ghostty-fix


📝 Commits (4)

  • e1e64eb scroll acceleration ghostty fix
  • 7986e28 fix grammar
  • 394b57b prettier
  • 40d81d3 Merge branch 'main' into scroll-acceleration-ghostty-fix

📊 Changes

3 files changed (+53 additions, -19 deletions)

View changed files

📝 packages/core/src/lib/scroll-acceleration.ts (+17 -16)
📝 packages/core/src/renderables/ScrollBox.ts (+1 -2)
📝 packages/core/src/tests/scrollbox.test.ts (+35 -1)

📄 Description

Some terminals send 2 or more ticks for each mouse wheel tick, for example Ghostty, with a small delay between each tick, about 4ms on average.

We ignore these ticks otherwise they would cause faster acceleration to kick in

https://github.com/ghostty-org/ghostty/discussions/7577


🔄 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/opentui/pull/203 **Author:** [@remorses](https://github.com/remorses) **Created:** 10/8/2025 **Status:** ✅ Merged **Merged:** 10/8/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `scroll-acceleration-ghostty-fix` --- ### 📝 Commits (4) - [`e1e64eb`](https://github.com/anomalyco/opentui/commit/e1e64eb919ea6dbf7647690d7c335c5ed8785317) scroll acceleration ghostty fix - [`7986e28`](https://github.com/anomalyco/opentui/commit/7986e28a1d3296b9ccb562a3630cacaaae4d317f) fix grammar - [`394b57b`](https://github.com/anomalyco/opentui/commit/394b57b283c92173113f74a2a9e970c81c0f2b11) prettier - [`40d81d3`](https://github.com/anomalyco/opentui/commit/40d81d3dfe6ae1191bf7a84e1f01475372dc9c7e) Merge branch 'main' into scroll-acceleration-ghostty-fix ### 📊 Changes **3 files changed** (+53 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/lib/scroll-acceleration.ts` (+17 -16) 📝 `packages/core/src/renderables/ScrollBox.ts` (+1 -2) 📝 `packages/core/src/tests/scrollbox.test.ts` (+35 -1) </details> ### 📄 Description Some terminals send 2 or more ticks for each mouse wheel tick, for example Ghostty, with a small delay between each tick, about 4ms on average. We ignore these ticks otherwise they would cause faster acceleration to kick in https://github.com/ghostty-org/ghostty/discussions/7577 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:21:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1151
No description provided.