jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
2.9k stars 124 forks source link

Feature request: `mwheel-accel-____` mouse wheel actions with acceleration #757

Open wis opened 8 months ago

wis commented 8 months ago

Is your feature request related to a problem? Please describe.

mwheel actions should also have variants that apply linear acceleration to mouse wheel scroll distance

Describe the solution you'd like.

the actions mwheel-accel-____, where is any direction (left, down, up, right), they should work the same as `mousemove-accel-`

All these actions accept four number strings. The first number is the interval (unit: ms) between movement actions. The second number is the time it takes (unit: ms) to linearly ramp up from the minimum distance to the maximum distance. The third and fourth numbers are the minimum and maximum distances (unit: pixels) of each movement.

except that the distances units are not in pixels, but the same as the mwheel-____ actions, with an arbitrary unit.

Describe alternatives you've considered.

A higher order construct, probably which can be used with a fake key, that can be used to add acceleration, whether it is linear or exponential acceleration, to any action.

Additional context

No response

jtroo commented 8 months ago

I believe you can write a custom, bespoke mouse acceleration action today, though a dedicated feature would be more certainly be more convenient and discoverable.

Related discussion: https://github.com/jtroo/kanata/issues/655