[Bug]: Smooth wheel scrolls way too far in Ghostty on macOS

Open
#2,649 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, rust
Domain
desktop

Research direction

The smooth-wheel path emits eased line events, and the momentum path emits continuous pixel events via ScrollFrame::step; start there and compare how each frame is sent when momentum is off. Confirm that about 12 fractional line events per click make Ghostty scroll roughly 36 lines, using the Ghostty scrollCallback link in the report. Done means one click with momentum off scrolls about 3 lines, or the fix is clearly scoped to the OpenLogi side.

Written by the indexing model from the issue text.

Description

area: gui needs: triage platform: macos type: bug
Pre-flight checklist
  • I searched existing issues and this is not a duplicate.
  • I am on the latest release or a recent master build.
  • I quit Logi Options+ before running OpenLogi (the two apps fight over HID++ access and only one can own a receiver at a time).
Which part of OpenLogi?

GUI (desktop app)

OpenLogi version

0.9.0

Operating system

macOS

OS version & architecture

macOS 27.2, Apple Silicon

Device model

MX Master 3 + Unifying receiver.

How is the device connected?

Unifying receiver

Affected area(s)
  • Device discovery / detection
  • Button remapping
  • DPI control
  • SmartShift
  • Per-application profiles
  • Battery status
  • Settings / configuration (TOML)
  • Auto-update
  • Menu bar / tray
  • Other
What happened?

With Smooth wheel on and momentum scrolling off, one wheel click in Ghostty scrolls much more than the 3 lines it should. Inside tmux with mouse on it's worse, since every line becomes a wheel event and tmux scrolls several lines per event. Browsers and other apps scroll the right distance.

Cause, as far as I can tell: the eased motion goes out as roughly 12 frames per click (100 ms, 8 ms apart). Each frame is a non-continuous line event with a fractional delta of about 0.08. Ghostty's scrollCallback rounds any non-precision event on macOS up to at least 1, because macOS reports slow real wheel clicks as about 0.1 (Surface.zig at v1.4.0). So every frame counts as a full click and then gets Ghostty's default discrete:3 multiplier, which works out to about 36 lines per click.

With momentum scrolling on, the same frames go out as continuous pixel events (ScrollFrame::step), and Ghostty adds those up instead of rounding them. Turning momentum on fixed it for me, so that works as a stopgap. Ratchet scrolling with momentum off still sends the fractional line events, though.

#2613 looks related: there an app ignores wheel-style events completely.

Steps to reproduce
  1. Turn on Smooth wheel for the mouse and leave momentum scrolling off.
  2. In Ghostty 1.4.0 with default scroll settings, fill the scrollback (seq 1 500).
  3. Scroll up one wheel click. It moves far more than 3 lines. Feels like 20-40 lines.
  4. Turn Smooth wheel off. One click moves 3 lines.
Diagnostics report
### OpenLogi Diagnostics

**App**
- OpenLogi (GUI): v0.9.0 (release)
- Agent: v0.9.0 (connected)
- IPC protocol: GUI 45 / agent 45
- Inventory: ready
- OS: macOS 27.2.1 (arm64)
- Locale: en-US (UI: follow system)
- Accessibility: granted · Input hook: installed
- Virtual keyboard: active
- Launch at login: yes · Menu bar: yes · Update check: on · Update channel: stable
- Running from: source build (dev)
- Config: schema 11 · 1 configured device(s) · thumbwheel 50

**Assets**
- Source: user cache · Index: loaded (286 models) · User cache: present
- Cache path: ~/.local/share/openlogi/assets · Bundle assets: absent

**Devices (1)**
- MX Master 3 — mouse (codename: Wireless Mouse MX Master 3)
  - Connection: Logi Unifying receiver · Online: yes · Battery: 100% (discharging, full)
  - Capabilities: buttons=yes, pointer=yes, pointer_scaling=no, lighting=no, force_sensing=no
  - DPI: 1000 dpi (range 200–4000, 77 steps)
  - Model: 0b023 (wpid: 4082, model-ids: b023/4082/0000, ext-model: 00)
  - Transports: eQuad, BTLE
  - Render: mx_master_3 · Slot 1

**Receivers (1)**
- Unifying Receiver (VID 046d / PID c52b)
openlogi list output

Logs

macOS permissions (if applicable)
  • OpenLogi has Accessibility permission (needed to remap buttons via the event tap).
  • OpenLogi has Input Monitoring permission (needed for Bluetooth-direct devices and capture).
Dominant language
Rust
Stars
26.4k
Forks
1k
Avg merge
3d 9h
Merged PRs (30d)
103

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AprilNEA/OpenLogi

All issues in AprilNEA/OpenLogi

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.