FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: two-finger scrolling issues with touchpad

Open checktext00 opened this issue 1 year ago • 6 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [X] This issue contains only one bug.

Describe the bug

on macOS the direction of two-finger scrolling on a touchpad is reversed

in the FreeTube app settings > Player section, enable

  • Scroll Volume Over Video Player
  • Scroll Playback Rate Over Video Player
  • Skip by Scrolling Over Video Player (after disabling "Scroll Volume Over Video Player")

in macOS Settings > Trackpad > Scroll direction is set to "Natural" (this is the default)

on macOS, the scrolling sensitivity is too high

  • for "Scroll Volume Over Video Player" currently I can go from 0% to 100% volume by moving my fingers about 5mm
  • for "Skip by Scrolling Over Video Player" it is also too high

Expected Behavior

Scrolling direction

the two-finger scrolling behavior should be:

  • two-fingers move up to increase volume (down to decrease)
  • holding the Command key + two-fingers move up to increase playback rate (down to decrease)
  • two-fingers move left to scroll backwards in video (right to scroll forwards)

currently FreeTube uses the opposite directions for these actions

Scrolling rate

  • lowered sensitivity (maybe 5 to 10x lower)

Issue Labels

usability issue

FreeTube Version

0.22.1

Operating System Version

macOS 11

Installation Method

.dmg

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

checktext00 avatar Jan 09 '25 09:01 checktext00

See if you want to test https://github.com/FreeTubeApp/FreeTube/pull/6666 Custom build in reply

PikachuEXE avatar Jan 29 '25 02:01 PikachuEXE

See if you want to test #6666 Custom build in reply

I haven't tested your custom build, but it seems it just fixes the scrolling rate and not the wrong direction (see Expected Behavior > Scrolling direction from the top post opening this issue)

checktext00 avatar Feb 15 '25 10:02 checktext00

For mouse wheel (or any scrolling event), when scrolling down, event.deltaY value is positive Then FT decrease/rewind the volume/playrate/progress Scroll up = increase/forward

For whatever direction setting for trackpad/wheel, FT is only able to read event values and use that to decide the direction

PikachuEXE avatar Feb 16 '25 00:02 PikachuEXE

you could just add a "reverse scrolling direction" just for those 3 settings in the FreeTube app settings > Player section

  • Scroll Volume Over Video Player
  • Scroll Playback Rate Over Video Player
  • Skip by Scrolling Over Video Player

checktext00 avatar Feb 21 '25 10:02 checktext00

When possible please try the custom build.

the custom build works much better, the scrolling rate/speed is perfect.

Apart from that, there is a a bit of rubber-banding feeling with the scrolling (like I could scroll the volume from 50% to 100%, but it will settle on 95%), and also it doesn't always scroll smoothly, but that's not a major issue

checktext00 avatar Apr 16 '25 13:04 checktext00