Skip to content

Releases

v0.11.0 — Native scroll mode, iPhone Mirroring fix, per-device profiles

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 02 Oct 05:15

Scrolling release: a new Native mode that keeps macOS's own scrolling and only flips the direction, iPhone Mirroring that scrolls again, per-device scroll profiles, and a leaner event path.

Scrolling (0.11.0)

  • Native mode replaces Standard. The OS wheel event passes through untouched — same speed, acceleration and feel as with Mousse off — and only Reverse vertical / horizontal applies, edited in place on the original event. Existing Standard settings (global and per-device) migrate to Native automatically. Native ignores speed, ⌘ zoom, ⌃/⌥ modifier scrolling and per-app rules, and Settings hides those controls.
  • Modes renamed to Native / Smooth / Windows.
  • iPhone Mirroring works again. It ignored the smoothed scroll stream and turned reposted events into tiny, sluggish swipes; scrolling over its window now always passes the original event through (reverse still applies).
  • Fewer reposted events. Reverse alone, on high-resolution mice and in excluded apps, now edits the original event; only a speed gain or an axis swap posts a fresh one.
  • Per-device scroll profiles (Settings → Devices): give each mouse its own mode, smoothness, speed, reverse and zoom speed. Needs Input Monitoring; the device tracker only runs while a profile exists or the tab is open, and picks up a later Input Monitoring grant without relaunching.
  • Separate vertical and horizontal reverse; old configs keep reversing both.
  • Eased ⌘ + wheel zoom: each notch drains over a short ease instead of one jump.

Performance

  • Each event copies only the state it reads (drags no longer copy the scroll tables), glide tuning runs only when a glide starts, and delta fields are read once.
  • Shared helpers replace duplicated scroll-field writing and animator reset/close code.

Compatibility

Built and verified on macOS 27 with the Xcode 27 toolchain. Minimum macOS 14.

Checksum

Mousse.zip sha256: 649bb95445b780a1fda8a94bb541945f86d9ee91ea6f05df48a32fe23ae439eb

v0.10.0 — wake-proof event tap, safer config, zoom speed

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 16 Sep 03:33

Reliability release: the event tap is rebuilt from scratch after sleep/wake and display changes, a broken config can no longer be lost silently, and two quality-of-life settings land — an independent zoom speed for ⌘ + wheel and an optional pointer freeze during Space drags.

Reliability (0.10.0)

  • Event tap is rebuilt, not just re-enabled, on wake. After display sleep, WindowServer can drop a tap in a way that makes CGEvent.tapEnable report success while every click and wheel event stays dead. Mousse now tears the tap down (run-loop source removed, mach port invalidated) and creates a fresh one on a new thread whenever the Mac wakes or a display changes. Wake notifications are debounced 150 ms so a multi-display wake triggers one rebuild, not several.
  • Re-enable escalates to rebuild. The 2 s watchdog still tries a cheap re-enable first; if that does not take, it requests a full rebuild. With no tap at all (Accessibility granted after launch), the watchdog starts the tap thread instead of a thread sleeping forever.
  • Event-tap status in Settings. General → Event tap shows Healthy / Recovering / Waiting for Accessibility / Failed, plus a count of recoveries since launch.
  • Corrupt config is backed up, never overwritten. An undecodable config.json is copied to config-corrupt-<timestamp>.json before defaults load. A file that cannot be read or backed up is left untouched until you explicitly choose to overwrite it; the banner in Settings and the menu entry explain what happened and offer a retry.
  • Input Monitoring shown next to Accessibility. The mouse tap does not require it, but on some macOS releases a missing grant looks exactly like a dead tap — it is now the first thing you can check.
  • tools/setup-signing-cert.sh works with macOS's default LibreSSL (-legacy is only passed to OpenSSL 3).

Scrolling (0.10.0)

  • Independent zoom speed. Settings → Scroll → Zoom speed (⌘ + wheel), 0.2×–6× (default 1× keeps today's feel), decoupled from the scroll-speed slider. Lower it if design tools like Figma or Sketch zoom too far per notch; pages keep scrolling at full speed.
  • Cleaner sliders. Each slider is one row with its live value; the duplicated label row and the wall of tick marks are gone.

Gestures (0.10.0)

  • Keep pointer in place while dragging (Settings → Gestures, off by default). Pins the cursor at the drag origin for the whole Space drag, Mac Mouse Fix-style, so it never wanders across screens or into the Dock. Released on button-up, on cancel, and by the wake rebuild.

Compatibility

Built and verified on macOS 27.0 with the Xcode 27 toolchain. Minimum macOS 15.

Checksum

Mousse.zip sha256: 69605d39a39aa73ccbfa33007302a8aa0066d632b3169bbcb011e4309081a254

v0.9.6 — flings decelerate, speed slider everywhere

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 14 Sep 08:04

Scroll-feel release: a hard fling no longer ends in a wall, the speed slider is available in every scroll style, and one more WindowServer lookup leaves the event-tap thread. Also includes everything from the unreleased 0.9.5.

Scrolling (0.9.6)

  • Flings decelerate instead of stopping dead. In Smooth mode a chained fast-scroll could ask for more distance than the 12 000 px/s output ceiling allows; the page then ran flat at the ceiling and stopped with no tail. The animator now hands the throttled backlog to a drag coast from the ceiling speed as soon as it fits, so every fling ends with the profile's own deceleration (Snappy ≈ 0.3 s, Balanced ≈ 0.5 s, Floaty ≈ 1.2 s). A single fling is also capped at ~1.5 s at the ceiling plus that coast, instead of up to 8 s.
  • Follow-up notches mid-fling no longer hitch, and a reverse notch brakes. While the ceiling was draining a backlog the plan reported its speed as 0, so the next same-direction notch re-planned from rest and a reversed notch flipped direction instead of braking. Both now see the real output speed.
  • Scroll-speed slider in every style. The slider scales high-resolution (continuous) mice in Standard and Smooth-step too, but was only shown in Smooth — a gain set there kept applying with no way to change it. It is now visible in all three styles, with a caption saying what it affects in each.

Performance (0.9.6)

  • Display span under the cursor is cached. Screen-size sensitivity scaling and quick-scroll called CGGetDisplaysWithPoint + CGDisplayPixelsHigh/Wide on every wheel notch (~16 µs on the event-tap thread). A rect-containment cache now answers, flushed on the same events as the window-under-cursor cache (wake, display change, Space/app switch).

From the unreleased 0.9.5

  • Natural-direction Exposé close. While Mission Control / App Exposé is showing (macOS 26+), only the natural reverse drag closes it — down closes Mission Control, up closes App Exposé — like the trackpad gesture.
  • Per-drag flick cooldown. Rapid successive flicks hop one Space each instead of the second being swallowed by the previous drag's cooldown.

Compatibility

Built and verified on macOS 27.0 with the Xcode 27 toolchain; the private Dock/Spaces symbols the app resolves at runtime are all still present. Note that on macOS 27 the follow-finger Space slide is unavailable (WindowServer no longer accepts field-based dock-swipe events), so Space-drag uses the system Ctrl+arrow shortcut — the ~1 s until the new Space's window is focused is the length of macOS's own slide animation.

Checksum

Mousse.zip sha256: b9cd11428eb223c67eb06cd63dbbf970cb67aeadcc2f1fbb4f38485020b808df

v0.9.4 — leaner hot paths, hardened input pairing

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 13 Aug 08:04

No behaviour changes to scrolling feel and no new settings — this release hardens input handling and shaves overhead off the real-time paths. It also includes everything from the unreleased 0.9.3.

Performance (0.9.4)

  • Cheaper locks on the hot paths. The event-tap engine, scroll animator and pinch synthesizer now use os_unfair_lock instead of NSLock on paths that run per mouse event (up to 1000 Hz on high-polling mice) and per display frame, with priority donation to whichever thread holds the lock.
  • No more per-event allocation on Cmd+scroll. The Chromium browser list used by the pinch-zoom boost was rebuilt (and substring-searched) on every zoom event; it is now a static prefix list.
  • Fewer WindowServer lookups while scrolling. The window-under-cursor cache now invalidates on the events that actually change it (Space switch, app activation, wake) instead of expiring 5×/s, removing a periodic ~0.2 ms lookup from the event-tap thread during long scrolls.

From the unreleased 0.9.3

  • Input pairing hardened. A button-up whose button-down was swallowed is now always swallowed too, no matter how the mapping/capture/enabled state changed mid-press — no more stuck buttons or stray unpaired ups. Gesture stream open/close ordering fixed across Space switches, and config decoding degrades per-field instead of discarding the whole file.
  • SMAppService and disk writes off the SwiftUI update path. Settings no longer performs an XPC round-trip inside every SwiftUI graph update, and config saves are debounced off slider drags.

Checksum

Mousse.zip sha256: 61b1b356067b60a06c07df4a882c440418a5289e84cfda8d6103816c1c68b2b2

v0.9.2 — stability, crash-safety and hot-path performance

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 27 Jul 07:38

Fixes only — no behaviour changes to scrolling feel, and no new settings.

Crash safety

HybridPlan.speed(at: 0) returned infinity for every scroll profile with no speed smoothing — Snappy, Precise and Quick, three of the five — and that value is fed back as the next notch's initial speed. Two neighbouring paths could produce a NaN the same way: a force-unwrapped failable initializer in DragSegment, and a division by an unchecked coast distance. All three converge on an Int32 conversion in the animator's frame step, where a NaN is a hard trap — the app dies mid-scroll. The math is fixed, and the per-frame deltas are now sanitized so a future tuning slip drops a frame instead of crashing.

Button remapping could silently die

Recording a button in Settings watched for the click with a local event monitor, which only sees events delivered to Mousse. Clicking a mouse button while the pointer was over another app never reached it, so capture stayed on — and while it is on every button passes through unmapped and the Space-drag gesture is bypassed, with no timeout to recover. Remapping stayed dead until you reopened Settings and pressed Esc, or relaunched. Now covered by a global monitor, a UI timeout, and an expiry inside the engine so no UI path can strand it.

Performance

Every scroll event resolved which app sits under the cursor, because the exclusion list is never empty (terminal apps are always merged in). Standard mode and untouched high-res passthrough — the two paths that do the least work — were paying a WindowServer round trip per event and throwing the answer away. The lookup is now gated on whether it can change the outcome, and the window list is bridged more cheaply: 0.47 ms → 0.22 ms per resolve on a 31-window desktop, on the latency-critical event-tap thread.

Also: follow-finger Space drags coalesce movement to ~120 Hz, so a 1000 Hz mouse no longer floods WindowServer for motion it can only render at refresh rate (this also makes flick strength consistent across mouse report rates); Cmd+scroll zoom arms one end-check per gesture instead of one main-queue timer per event; Settings no longer runs LaunchServices queries and disk reads inside a view body on every re-render; and a config write that changes nothing no longer costs a disk write plus a full engine reload.

Smaller fixes

  • Data race on the event tap handle between the tap thread and the main-thread watchdog.
  • The pid → bundle ID cache grew without bound and could answer with an exited process's ID after a pid recycled.
  • Declining Accessibility logged once a second forever; now at most once a minute.
  • No more spurious momentum ended for a momentum stream that never opened.

Install: unzip, drag Mousse.app to Applications, then clear the quarantine flag — see the README for the three-step guide. Still signed with a local certificate, not an Apple Developer ID, so macOS will block it on first launch.

v0.9.1 — stability & correctness fixes

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 17 Jul 08:47

Five fixes from a full-codebase review. No new features — everything here makes existing behavior more correct or more robust.

Fixed

  • Space-drag gesture could get stuck. Disabling Mousse, changing the gesture button, or starting a button capture while holding a drag left the gesture wedged — after that, any other button-drag fired spurious Space switches until the gesture button was pressed again. In-flight drags are now cancelled on all three transitions.
  • One bad value no longer wipes your settings. A config field with an unknown value (e.g. written by a newer version) or a broken button mapping used to silently reset the whole config to defaults. Now only the offending field/mapping falls back; everything else survives.
  • Space switching no longer types into your app. If the "Move left/right a space" shortcut is disabled in System Settings, Mousse used to type a literal Ctrl+←/→ into the focused app (jumping the caret in editors). It now skips and logs a hint instead. Mission Control / App Exposé also gained a keystroke fallback for systems where the Dock SPI is unavailable.
  • Scroll input units follow the CG contract. Pixel deltas are now read from the point field (fixed-point is fractional lines — verified by field-logging an MX Master 3, ratio 0.0993). Contract-conforming high-res mice would previously scroll ~10× too slow with "Smooth high-res mice" enabled and report ~10× too few lines to terminals. No feel change on ordinary notch mice. If a high-res mouse (e.g. Keychron M6) suddenly feels much faster with that option on: that's the correction — re-tune the speed slider.
  • macOS 27+ zoom fallback is now sane (future-proofing; inert on macOS 26): Cmd+scroll keystroke zoom accumulates wheel ticks into whole, rate-limited zoom steps instead of firing one Cmd+=/Cmd+− per raw event — a free-spin flick no longer means dozens of zoom steps.

sha256 Mousse.zip: 9b5396a24593421fa344ecc9e0aace17907e1fc55a88569cca203f80cd70e0c7

v0.9.0 — SilkMouse is now Mousse

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 17 Jul 07:36

SilkMouse is now Mousse 🍮

Same app, new name. This release contains no feature changes — it is the rename release.

What changed

  • App, binary, and zip are now Mousse (Mousse.app, Mousse.zip).
  • Repo moved to MinhQuang28/Mousse — old links redirect automatically.
  • Bundle identifier is now com.mousse.app.
  • Your settings migrate automatically from the old SilkMouse config on first launch.

Upgrading from SilkMouse

  1. Quit SilkMouse and delete /Applications/SilkMouse.app.
  2. Download Mousse.zip below, unzip, and drag Mousse.app into Applications.
  3. Clear quarantine (local cert, not notarized):
    xattr -dr com.apple.quarantine /Applications/Mousse.app
    
  4. Launch Mousse and re-grant Accessibility (System Settings → Privacy & Security → Accessibility). macOS sees the new bundle id as a new app, so this one-time re-grant is unavoidable; remove the stale SilkMouse entry while you're there.
  5. If you used launch-at-login, toggle it on again in Mousse's settings.

sha256 Mousse.zip: f8b8b742c19d0cc6a114172a079fee98f941275a28610c7e7b612667fc94447b

v0.8.3 — Terminal scrolling behaves natively

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 15 Jul 10:25

Fixes

Terminal over-scroll: one notch jumped 10+ text lines

Two-layer fix:

  • Legacy line deltas now report the device's real line count. Smooth mode is accelerated (one notch can glide 30–100 px); dividing output pixels by the system's 10 px/line convention claimed 3–10 lines per notch. The line/fixed-point fields are now scaled by the glide's own px-per-device-line ratio (or by the speed-slider gain on the high-res path), so line-based consumers see exactly the lines the wheel actually turned.
  • Classic terminal emulators are always excluded from smoothing (Terminal, iTerm2, kitty, WezTerm, Ghostty, Alacritty, Hyper, Tabby). They translate scroll pixels into mouse-reporting wheel events — vim/tmux then multiply each by ~3 lines — so any pixel glide jumps many text lines per notch no matter what the line fields say. The wheel now behaves natively over these apps (reverse and speed still apply). Warp is not excluded — it renders pixel scrolling natively and stays smooth.

Install

  1. Download SilkMouse.zip, unzip, and move SilkMouse.app to /Applications.
  2. Right-click → Open the first time (unsigned build).
  3. Grant Accessibility when prompted (System Settings → Privacy & Security → Accessibility).

v0.8.2 — Smooth glide restored (write-order fix)

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 15 Jul 09:56

Fixes

Slow-scroll shaking / everything scrolling slower than intended (regression in v0.8.1)

CGEvent stores the line, fixed-point, and point scroll deltas as three views of one axis value — writing the integer line delta re-syncs the other two to the whole-line value. The v0.8.1 terminal fix wrote the line delta last, so every synthetic frame was quantized to line-sized lumps: slow scrolls moved in 0/±1 px bursts (visible shaking) and glides ran ~10× slower than planned. Delta fields are now written in the order line → fixed-point → point in both event-posting paths, verified against a live event capture: fractional per-frame deltas survive, and terminals still receive properly accumulated ±1 line deltas.

High-res mice: speed slider and reverse silently ignored (with "Smooth high-res mice" off)

The non-animated high-res path edited passthrough events in place, which macOS ignores — the system re-reads the original deltas. All modifications (slider gain, reverse, axis swap) now go out as a fresh tagged event; neutral settings still pass the original through untouched.

Hardening (from an adversarial code review of the above)

  • Fixed-point deltas are sanitized before integer conversion, so a corrupt scroll event from another process (NaN/huge delta) can no longer crash the app.
  • The fresh-event path carries fractional line deltas across events, so slow high-res scrolling keeps moving terminals in mouse-reporting mode.

Install

  1. Download SilkMouse.zip, unzip, and move SilkMouse.app to /Applications.
  2. Right-click → Open the first time (unsigned build).
  3. Grant Accessibility when prompted (System Settings → Privacy & Security → Accessibility).

Upgrading from v0.8.1 is strongly recommended — v0.8.1 has the slow-scroll quantization regression described above.

Terminal flood on fast scroll (found after first v0.8.2 build)

Scroll-event field units were wrong: the fixed-point delta must be the precise fractional line count (like real trackpad events and Mac Mouse Fix's synthesis), not pixels. Terminals build their mouse reports from that field, so a 47 px frame read as 47 lines and flooded vim/tmux with ESC[<65;..M garbage. Line/fixed-point deltas are now in line units, the point delta stays in pixels — GUI smoothness is unchanged. The attached build includes this fix.

v0.8.1 — Terminal & free-spin fixes

Choose a tag to compare

@MinhQuang28 MinhQuang28 released this 15 Jul 08:35

Bug-fix release for scrolling in terminals and hard flywheel spins.

🐛 Fixes

Terminal garbage text (ESC[<65;…M spam)

Scrolling inside a TUI (vim, tmux, CLI tools) with mouse-reporting enabled could spill raw escape sequences onto the screen. Synthetic scroll events were leaving the legacy line-delta fields to be derived automatically, which made every animation frame (60–120/s) count as a whole wheel line — flooding the program. Line deltas are now accumulated explicitly (1 line ≈ 10 px, like a real trackpad): terminals see a sane wheel rate, no more garbage, and TUI scrolling speed is correct instead of ~10× too fast.

MX Master 3 free-spin stopping mid-page

A hard spin toward the top of a long page could halt abruptly half-way: input above the output speed ceiling was being dropped once the small pixel backlog filled. The backlog now holds a full flywheel spin (30,000 px) and keeps draining at ceiling speed, so the page reaches the top. Intentional stops are handled by grab detection instead: if the input stream ceases while a large backlog remains (you physically caught the wheel), the backlog collapses and the view stops with your hand — a naturally decaying flywheel never triggers it.

Cmd+scroll zoom on macOS 27+

The pinch synthesizer now has the same forward-compatibility gate as the Space-drag gesture (macOS 27 stops reading field-based gesture events); it falls back to Cmd+= / Cmd+− keystrokes there.

🧹 Internal

  • Scroll-model types renamed (MMF prefix dropped), ScrollMath.swift rename, test suite split cleanly.

Full Changelog: v0.8.0...v0.8.1