ther0n / UnnaturalScrollWheels

Invert scroll direction for physical scroll wheels while maintaining "Natural" scrolling for trackpads on MacOS
GNU General Public License v3.0
3.3k stars 71 forks source link

Allow decimal number of lines to scroll #39

Open jackle3 opened 2 years ago

jackle3 commented 2 years ago

UnnaturalScrollWheels has an option to disable scroll acceleration, where you can set a certain number of lines to scroll per wheel click. This number can only be integers (i.e. 1,2,3,4, etc). Would it be possible to have options in between these? As in, would it be possible to allow something like 2.5 lines to scroll per wheel click?

ther0n commented 2 years ago

It might be possible if I change the event to a touchpad event but I don't think that would work very well. Currently the app is using this integer value and multiplying it by the scroll lines you chose. The result has to be an integer since it updates that value in the event then passes it to the system.