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

4.6 seems to break middle click (auto scroll) scrolling on Firefox #1649

Closed
PoorChameleon opened this issue Mar 30, 2023 · 24 comments
Closed
Labels
help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ z FireFox occuring in FireFox (only?)

Comments

@PoorChameleon
Copy link

PoorChameleon commented Mar 30, 2023

Bug Report:

BUG: Updating to 4.6 breaks autoscrolling, so pressing middle click and trying to scroll that way, on Firefox

HOW: Install 4.6 and try to middle click scroll on any (but especially video) page

EXPECTED (/preferred) behavior: For middle click scroll to work as expected

Context: This worked just fine on 4.0.17.1, however it also works on 4.4 so it might be a change between 4.4 and 4.6. On Chrome middle click scrolling works on 4.6 so this might be Firefox specific

Setup:

⚬ ImprovedTube Version: 4.6
⚬ Browser: Firefox 111.0.1
⚬ Settings: Happens on fresh install too
⚬ OS: Windows 11

I hope this isn't something specific to my setup, but I did try with a fresh portable version of Firefox and the addon

Edit2: if you navigate backwards from a video back to a channel you can middle click scroll for like half a second before it stops so it seems as soon as something loads it breaks

Edit3: it seems to always break most consistently when opening a video in a new tab

@PoorChameleon PoorChameleon added Bug Bug or required update after YouTube changes help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) labels Mar 30, 2023
@debdrup
Copy link

debdrup commented Apr 2, 2023

Even if it took me a while to figure out that it's this add-on that's responsible, I can confirm that I'm also experiencing this issue.

So I'll be keeping an eye on the thread. :)

@ImprovedTube ImprovedTube added the z FireFox occuring in FireFox (only?) label Apr 2, 2023
@ChristophSchmidpeter
Copy link

ChristophSchmidpeter commented Apr 4, 2023

I hope this isn't something specific to my setup, but I did try with a fresh portable version of Firefox and the addon

Reproducible here as well

@ImprovedTube
Copy link
Member

specific to firefox :D got it too.

@ImprovedTube
Copy link
Member

ImprovedTube commented Apr 4, 2023

amazed about the activity here though
google results:

 20 000 000 000x  click 
    120 000 000x "right click"   
        700 000x "middle click"

@ImprovedTube
Copy link
Member

@ChristophSchmidpeter @debdrup
Since @PoorChameleon narrowed it down, there remain only these few commits (none of which seems critical 😀)

So we have to try one by one
(besides of course you can can skip edits of readme, .gitmodules)

https://github.com/code-charity/youtube/commits/424d609b14da9479f38db42795e474ca2ba75771

github issues

@PoorChameleon
Copy link
Author

PoorChameleon commented Apr 10, 2023

I believe 4556fb0 is the commit that breaks auto scrolling on Firefox. It still works on the earlier dbb3ed0 commit

@ImprovedTube
Copy link
Member

thanks, reporting to Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1827288

@ImprovedTube ImprovedTube added the up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ label Apr 29, 2023
@ImprovedTube
Copy link
Member

ImprovedTube commented May 20, 2023

Firefox gave it a normal priority and said it might be fixed
hi @greenhouse95 @raszpl
this line started as a fix/precaution for the transcript feature, but also makes YouTube's page load more calm

html {overflow-x: hidden !important; }
/* Fix to tame Youtube's page-load / make it more calm - the player wont annoyingly slide in from the right anymore */
/* previously also: html[it-transcript='true'] {overflow-x: hidden !important; } */
@-moz-document url-prefix() { overflow-x: visible !important; } /* REMOVE ME SOON https://github.com/code-charity/youtube/issues/1649 */

in the meantime i can manually delete or overwrite it in the next firefox version ( @-moz-document url-prefix() { overflow-x: visible !important; } )

however the gain might outweight the loss, unless there is high correlation between ImprovedTube users in Firefox & Middle Click users (and Github Reporters)

20 000 000 000x click
120 000 000x "right click"
700 000x "middle click"

( Such amazing correlation seems to be proven since you are nr 4. reporting @greenhouse95.
isnt Middle click usually less comfortable than ctrl+click? 🤔 (depending what mouse) )

@PoorChameleon
Copy link
Author

Hey, so it breaks again on the latest version, assuming since the change you temporarily made was reverted.

If it's too much maintenance to have middle click scrolling then it's okay, but it would be nice to have it working on Firefox.

@greenhouse95
Copy link

greenhouse95 commented Jun 17, 2023

Hey, so it breaks again on the latest version, assuming since the change you temporarily made was reverted.

If it's too much maintenance to have middle click scrolling then it's okay, but it would be nice to have it working on Firefox.

Yeah I don't feel like it will ever get fixed from either side (Firefox and Extension). So what I've done myself is use the Stylus extension to create a style, with this line: html[style]{overflow-x: visible !important; }
That will override the extension change that breaks the scrolling.

@gregmatic
Copy link

Hey, so it breaks again on the latest version, assuming since the change you temporarily made was reverted.
If it's too much maintenance to have middle click scrolling then it's okay, but it would be nice to have it working on Firefox.

Yeah I don't feel like it will ever get fixed from either side (Firefox and Extension). So what I've done myself is use the Stylus extension to create a style, with this line: html[style]{overflow-x: visible !important; } That will override the extension change that breaks the scrolling.

beautiful.

@greenhouse95
Copy link

@-moz-document url-prefix() { overflow-x: visible !important; }

so this isnt taking effect?

It did work until it was removed on this commit.

@KSneijders
Copy link

@ImprovedTube Can the removal of what's shown above be reverted? It's still broken

ImprovedTube added a commit that referenced this issue Sep 27, 2023
@ImprovedTube
Copy link
Member

hi @KSneijders! yes, you can try it
c0af89c

https://github.com/code-charity/youtube/archive/refs/heads/master.zip

(of course the most efficient would be a build script, just removing the html {overflow-x: hidden !important;} from the firefox version and already predicting until when that's good )

@ImprovedTube ImprovedTube removed the Bug Bug or required update after YouTube changes label Sep 27, 2023
@KSneijders
Copy link

Hey @ImprovedTube, I tried it by loading the zip file as Temporary Extension in Firefox and the auto scroll works again!

I didn't quite understand what you meant with the sentence "(of course the most efficient... ...until when that's good)". So I'll ask this just in case, will this change be released in the next update by any chance? 🙂

Thanks for the quick update and the plugin in general! ❤️

@ImprovedTube
Copy link
Member

hi @KSneijders thanks

released

can be released, until firefox might also fix it.

understand

(currently the gihub repo version is the same in all browsers, until we may use a build.py again to make the edits each browsers needs. yet running a line of CSS shouln't take relevant CPU time even for everybody in sum.)

@ImprovedTube
Copy link
Member

v4.443 moved the line here from general.css. That might just makes it run slightly earlier?

/* fix for youtube's player moving in from the right side */
html {overflow-x: hidden !important; }
/* html {overflow-x: hidden !important; }
/* Fix to tame Youtube's page-load / make it more calm - the player wont annoyingly slide in from the right anymore */
/* previously also: html[it-transcript='true'] {overflow-x: hidden !important; }*/
@-moz-document url-prefix() { overflow-x: visible !important; } /* REMOVE ME SOON https://github.com/code-charity/youtube/issues/1649
/*------------------------------------------------------------------------------
>>> TABLE OF CONTENTS:

hi @KSneijders @greenhouse95

@Onsekyl
Copy link

Onsekyl commented Dec 17, 2023

The fix presented here works only for the first tab of Youtube, if I open another one it doesn't work there but keeps working on the first one. Closing all tabs and opening them again produces same thing.

I'm pretty much clueless about how these things work so don't know if this is relevant, just pointing it out.

@itsLantik
Copy link

@Onsekyl Yeah I got the same first tab issue, an improvement nonetheless. I would recommend looking for "Enhancer for Youtube", it's not on the Firefox Addons store anymore but you can find a zip online. It's not perfect but until this gets fixed it's a good patchwork solution.

@ImprovedTube
Copy link
Member

hi! @itsLantik @Onsekyl, confusing. you can try to remove the lines above from FireFox completely.

@Onsekyl
Copy link

Onsekyl commented Dec 20, 2023

@ImprovedTube @itsLantik That worked! The scroll works now. To itsLantik: I recently moved from the Enchanger for Youtube as it began to malfunction too much.

@Onsekyl
Copy link

Onsekyl commented Mar 2, 2024

Hi, I noticed that if you press the middle mouse on top of the scrollbar the fast scroll works!

@ImprovedTube
Copy link
Member

hi! @Onsekyl thanks! (we can also fixing simply removing (if not fixing) the first few lines of our styles.css for firefox.)

@ImprovedTube
Copy link
Member

@-moz-document url-prefix() { overflow-x: visible !important; }

sorry this was missing html{ }

latest.zip

also #2254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ z FireFox occuring in FireFox (only?)
Projects
None yet
Development

No branches or pull requests

9 participants