Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scroll to seek/change volume/playback rate changing too fast with touchpad #6666

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

PikachuEXE
Copy link
Collaborator

@PikachuEXE PikachuEXE commented Jan 29, 2025

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Closes #6539

Description

wheel triggered N times more than mouse wheel with smaller delta values to have smooth scrolling
This PR throttles event handler on value change side only (prevent default/stop propagation still called all the time

Screenshots

With 100ms wait time, trackpad

Screen.Recording.2025-01-29.at.10.21.52.mp4

Testing

A) Those without trackpad
See #6539, test with mouse wheel ensure it works similar to/same as before

B) Those with trackpad
#6539

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

I tested 50ms wait and it seems too fast
(Too lazy to record that too

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 29, 2025 02:24
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 29, 2025
@PikachuEXE
Copy link
Collaborator Author

@efb4f5ff-1298-471a-8973-3d47447115dc

it seems slow but that could be because im testing on a trackpad

@PikachuEXE
Copy link
Collaborator Author

Feel free to change the 100ms values to something else to see how it feels
To me 50ms seems too fast (on macOS trackpad
No idea how other OSes handle trackpad scrolling

@efb4f5ff-1298-471a-8973-3d47447115dc

I let the others chime into this one as i find it difficult to evaluate what a good speed for this is

@PikachuEXE
Copy link
Collaborator Author

I rarely use trackpad not to mention scrolling
So same as you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: waiting for review For PRs that are complete, tested, and ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: two-finger scrolling issues with touchpad
2 participants