Moon-0xff / gnome-mpris-label

A music related GNOME extension.
GNU General Public License v3.0
56 stars 11 forks source link

if natural-scroll is enabled, invert scroll inputs #113

Open cg505 opened 12 hours ago

cg505 commented 12 hours ago

When natural scrolling setting is enabled, the scroll inputs are essentially the opposite of what's actually physically happening. This is fine for scrolling down a page, but feels very weird for things like volume control.

Invert natural scrolling inputs so scrolling up actually increases the volume, and vice versa.

Fixes #112.

Moon-0xff commented 3 hours ago

While this might be out of scope, it makes sense that if we decide to fix the direction of the volume slider, we should do the same for the built-in global slider. This can indeed be done, though I'm not sure how.
I believe the volume widget is somewhere inside Main.panel and can be referenced (Main.panel...), if we can grab the volume slider object, then perhaps we can redefine the scroll function.