Read glideIntensity and ignoredApps from a JSON file at ~/.config/mxd,
written with defaults if missing. An existing path is never modified,
and a bad file falls back to defaults. Read once at startup.
While an ignored app is the scroll target, its notches pass through
untouched. While one is frontmost, the buttons are undiverted, so it
gets real mouse buttons and a thumb hold doesn't freeze the pointer.
Default to NVIDIA GeForce Now, under both its long name and the name
it is believed to report on macOS. That name is unconfirmed, as the
app isn't installed where this was written.
Assisted-by: Claude Sonnet 5.5
Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
Replace scrollDuration with a 0...1 value. 0 jumps with no glide, 0.5
is Mos's default and today's behaviour, 1 is Mos's longest glide.
Scale the dead zone with the transition. A frame is only posted above
the dead zone, so long glides would otherwise lose most of their
distance. One notch now travels 79-91 px at every intensity.
Assisted-by: Claude Sonnet 5.5
Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
A tap that outlives its Accessibility grant can stall scroll events,
and every later click and key queues behind them. When the grant goes,
remove the tap, restore the buttons and exit.
Assisted-by: Claude
Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
Stop reversing the wheel and stop raising DPI to 1600, since both
changed behaviour the user relied on.
Send glide frames straight to the target app from an annotated-session
tap, as Mos does, so frames no longer pass back through mxd's own tap.
Reuse one event per notch, reduce the scroll filter to two values, and
stop the timer once nothing more can be posted.
Remove the background activity assertion, which was preventing idle
system sleep.
Assisted-by: Claude Opus 5.5
Signed-off-by: Yigit BALABAN <balaban@yigid.dev>