Skip to content

feat: changing the playback speed and volume with the mouse wheel / scroll (fixes #3388)#3661

Open
W07L wants to merge 8 commits intocode-charity:masterfrom
W07L:master
Open

feat: changing the playback speed and volume with the mouse wheel / scroll (fixes #3388)#3661
W07L wants to merge 8 commits intocode-charity:masterfrom
W07L:master

Conversation

@W07L
Copy link

@W07L W07L commented Mar 3, 2026

Summary

I have work on this feature request #3388. I have add the possibility to change speedback speed and volume with Mouse wheel/scroll + Shift/Ctrl/Alt
Both of them work by toggle the option and set the shotcuts. It take effect when the mouse is on the video or the video is on fullscreen

Change

  • Add a toogle option to enable the use of Mouse wheel in volume section
  • Add 2 more shortcuts in volume section
  • Add a toogle option to enable the use of Mouse wheel in speedback speed section
  • Add 2 more shortcuts in speedback speed section

Test

I have on Microsoft Edge, Google Chrome and Firefox and it work on all of them.

W07L added 8 commits March 2, 2026 14:01
…tcuts

Add toggle to change volume with scroll button + left ctrl and 2 shortcuts
delete restriction to only use left ctrl
Add possibility to change playback speed with mouse wheel/scroll
Fix problem where playback speed can be change without preset shortcuts
Fix problem where volume can be change without preset shortcuts
…hange the volume

I delete the idea of displaying the same YouTube sound icons when I change the volume
if (message.key.startsWith('shortcut_') || message.key === 'shortcuts_volume_wheel_ctrl') {
camelized_key = 'shortcuts';
if (typeof ImprovedTube.shortcutsInit === 'function') {
ImprovedTube.shortcutsInit();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shortcutsInit can be called when shortcuts change,
not required again for every shortcut pressed.

@ImprovedTube
Copy link
Member

Thank you so much! @W07L

Please check: #862

Glad you had a look at shortcuts.js #1565


ImprovedTube needs structure / feature discoverability #2251 #748

We have the functionality ( @Heinz14 @W07L )
wheel

(Yet it is popular and should have had a quick preset option accessible with one or a few clicks.)
Only changes in menu/skeleton-parts/shortcuts.js are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants