Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.34k stars 690 forks source link

On touchpad scrolling is insanely fast #1800

Open Kommynct opened 1 year ago

Kommynct commented 1 year ago

It takes almost 0 movement to get from 0% to 100% on the pulseaudio module, and leaving scrolling on for workspace management is... awful

i've tried setting smooth-scrolling-threshold to insane numbers and it seems to do nothing at all.

ordy commented 1 year ago

Facing the same issue, mouse scrolling is fine but trying to change the brightness or volume on a touchpad is god awful. Also setting a low scroll factor on sway has no effect on waybar.

xlucn commented 10 months ago

@Alexays Could it be that pulseaudio/backlight modules shouldn't listen to smooth scroll events at all? It's just a guess without knowing the details. Smooth scroll events may be too frequent for these kind of task.

xlucn commented 10 months ago

I received a notification and email of Mateo's comment, but didn't see it here (is it just me?).

You can set the smooth-scrolling-threshold to 1.0 to have a more manageable speed. E.g.

"pulseaudio": { "format": "{volume}% {icon}", "format-muted": "{volume}% 󰝟", "format-icons": ["󰕿", "󰖀", "󰕾"], "smooth-scrolling-threshold": 1.0 },

This works well, for me at least. Thanks.

Actually, the option name "smooth-scrolling-threshold" confuses me. It actually works more like a "(reverse) scaling factor" of "smooth scrolling distance" -> "discrete scroll steps" conversion. But, a "threshold" sounds like a "won't work if below this" kind of concept :)


Now the question is:

  1. is there a good choice of "smooth-scrolling-threshold" that works for common trackpads?
  2. what is the default value in waybar, and should waybar set a different default?
  3. should there be a global option "smooth-scrolling-threshold" that change the default of all modules?