Repository navigation
v0.9.2 — stability, crash-safety and hot-path performance
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 endedfor 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.