hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

Mouse smooth scrolling

Open KURANADO2 opened this issue 2 years ago • 2 comments

I want to use hammerspoon to achieve smooth mouse scrolling like Mos does, but I'm not sure if it's possible? My implementation idea is: intercept the mouse scroll event, and resend the scroll event after smooth interpolation. I saw #1540 so I know how to intercept mouse scroll events. But when I actually wrote the code, I found that if the scroll event was intercepted, after smooth interpolation, the resent scroll event would also be intercepted.

KURANADO2 avatar Apr 11 '22 12:04 KURANADO2

Add another flag when resend event to filter out may help avoiding endless loop

timqi avatar Aug 15 '23 10:08 timqi

I will try again as you said when I have time, thanks.

KURANADO2 avatar Aug 16 '23 00:08 KURANADO2