-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix scroll to seek/change volume/playback rate changing too fast with touchpad #6666
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
Conversation
|
it seems slow but that could be because im testing on a trackpad |
|
Feel free to change the 100ms values to something else to see how it feels |
|
I let the others chime into this one as i find it difficult to evaluate what a good speed for this is |
|
I rarely use trackpad not to mention scrolling |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@absidue @ChunkyProgrammer @kommunarr your input is needed |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
I don't have a laptop so I can't really test this/suggest a good speed |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
scrolling rate/speed is perfect with the new build, but, 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. also there is still the lack of ability to reverse the scrolling direction for the following 3 settings in the FreeTube app settings > Player section:
|
|
@PikachuEXE can you rebase into dev. Im having playback issues |
08f9b5e to
8007c4e
Compare
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
* development: (168 commits) Bump stefanzweifel/git-auto-commit-action from 5 to 6 (FreeTubeApp#7564) Translated using Weblate (Swedish) Bump the eslint group with 3 updates (FreeTubeApp#7567) Bump sass from 1.89.1 to 1.89.2 (FreeTubeApp#7565) Bump shaka-player from 4.14.15 to 4.14.18 (FreeTubeApp#7566) Bump postcss from 8.5.4 to 8.5.5 in the stylelint group (FreeTubeApp#7568) Bump electron-builder from 26.0.16 to 26.0.17 (FreeTubeApp#7569) Translated using Weblate (English (United Kingdom)) add beta to asset name (FreeTubeApp#7512) Translated using Weblate (Dutch) Translated using Weblate (Dutch) Fix builds failing due to broken Weblate keys (FreeTubeApp#7560) Translated using Weblate (Persian) Translated using Weblate (Welsh) Migrate FtListVideoLazy to the composition API (FreeTubeApp#7534) Bump electron-builder from 26.0.15 to 26.0.16 (FreeTubeApp#7539) Bump eslint-plugin-vue from 10.1.0 to 10.2.0 in the eslint group (FreeTubeApp#7537) Bump webpack-dev-server from 5.2.1 to 5.2.2 (FreeTubeApp#7538) Bump electron from 36.3.2 to 36.4.0 (FreeTubeApp#7540) Translated using Weblate (Hungarian) ...
… from touchpad), update throttle wait 100 > 200ms
|
Update: Only apply scroll throttle when delta value is small (assumed to be from touchpad), update throttle wait 100 > 200ms |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
* development: (192 commits) Translated using Weblate (Japanese) Fix scroll to seek/change volume/playback rate changing too fast with touchpad (FreeTubeApp#6666) Move General section within the Distraction Free Settings to top (FreeTubeApp#7719) Fix deleted videos appears when another video added to another playlist (FreeTubeApp#7681) Change Settings order (FreeTubeApp#7722) Migrate Subscriptions{Videos,Live,Shorts,Posts} to the composition API (FreeTubeApp#7717) Translated using Weblate (Romanian) Translated using Weblate (German) Migrate the FtToggleSwitch component to the composition API (FreeTubeApp#7740) Add missing FontAwesomeIcon imports to `<script setup>` components (FreeTubeApp#7739) Translated using Weblate (Spanish) Translated using Weblate (French) Translated using Weblate (Basque) Translated using Weblate (Chinese (Simplified Han script)) Translated using Weblate (Breton) Translated using Weblate (Estonian) Translated using Weblate (Italian) Translated using Weblate (Tamil) Translated using Weblate (Czech) Translated using Weblate (Hungarian) ... # Conflicts: # package.json # src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js # src/renderer/helpers/api/local.js # yarn.lock
Pull Request Type
Related issue
Closes #6539
Description
wheeltriggered N times more than mouse wheel with smaller delta values to have smooth scrollingThis 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
Additional context
I tested 50ms wait and it seems too fast
(Too lazy to record that too