Repository navigation
v0.8.2 — Smooth glide restored (write-order fix)
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
- Download
SilkMouse.zip, unzip, and moveSilkMouse.appto/Applications. - Right-click → Open the first time (unsigned build).
- 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.