Skip to content

WIP Touchpad-optimized input

Frans Skarman requested to merge touchpad into main

Currently, surfer isn't great on touchpads where horizontal scroll is as easy as vertical, but ctrl is annoying.

This feels much better for me, and should, imo, be the default on touchpads. However, since it is very different to the mouse version, we need to separate them, ideally based on the input device being used. However, I can't find a way to do that, so we need another option. I can think of 2:

  • Use heuristics to determine if we're on a touchpad or not. On a touchpad it is unlikely for both delta to be exactly along the x or y axis, but i'm not sure if that is reliable enough. I think some touchpads also "linearize" almost vertical or almost horizontal scroll
  • Use a config flag. Users on trackpads can set a global conifg and forget about it. The downside to this is that people who use their laptop both docked and as a laptop will not have an easy way to switch.

Any preferences here?

Merge request reports