I maintain SmoothWheel, an open-source macOS wheel utility. I wanted to answer a narrow question: could I make the last few points of a scroll arrive more steadily while retaining a quick start and reversal?
AI assistance was used to draft and edit this article. The measurements come from the project’s replay harness.
Measure packets after the real motion code
The production coordinator routes input, then passes a wheel event to a stream that applies the motion model on each frame tick. The stream emits Quartz scroll packets. Trackpad input and marked synthetic events pass through. The smoother keeps independent state for each wheel axis and discards the old direction’s residual on reversal.
The replay drives the same Swift event stream with a virtual clock and captures its output before anything is posted to the system. No event tap or target app is needed for this part of the test. The production code still does the rounding and allocates real Quartz events.…