ghostty-org/ghostty

Scrolling while moving the mouse out of the window can cause a reverse scroll

Closed this issue · 1 comments

Discussed in #8682

Originally posted by mavonarx September 16, 2025

Issue Description

When selecting text and then pulling the cursor out of the window on the level of the title bar of the ghostty window (to make the window scroll up wihle selecting text). After lowering the cursor again to a level below the title bar the window starts to scroll down somehow. This does not happen while the cursor stays inside the ghostty window itself. This happens with the newest 1.2 release on mac os.

Scroll.mp4

Expected Behavior

The window should not scroll down, it should be the same behaviour as if the cursor was inside the window.

Actual Behavior

Window starts to scroll down once the height of the cursor outside the window is below title bar again.

Reproduction Steps

  1. Open a ghostty window
  2. Produce enough text to scroll
  3. Select text and drag the cursor outside of the window over the height of the titlebar
  4. lower the cursor outside of the window below the titlebar again (while still selecting text).
  5. => Window starts to scroll down

Ghostty Logs

No response

Ghostty Version

Ghossty 1.2.0

12119 Build
Commit 3e38e284c

OS Version Information

mac os 15.5

(Linux only) Display Server

None

(Linux only) Desktop Environment/Window Manager

No response

Minimal Ghostty Configuration

no config needed

Additional Relevant Configuration

No response

I acknowledge that:

  • I have reviewed the FAQ and confirm that my issue is NOT among them.
  • I have searched the Ghostty repository (both open and closed Discussions and Issues) and confirm this is not a duplicate of an existing issue or discussion.
  • I have checked the "Preview" tab on all text fields to ensure that everything looks right, and have wrapped all configuration and code in code blocks with a group of three backticks (```) on separate lines.

This happens on Linux too.