youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Player control bar disappears when hover cursor over it

Open xeophyte opened this issue 1 year ago • 2 comments

Bug Report:

BUG: When you hover cursor over player control bar, it disappears after a while ⚬ HOW: hover cursor over player control bar for a while and don't move it

⚬ ImprovedTube Version: 4.615 ⚬ Browser: Vivaldi 6.6.3249.4 (64-bit) ⚬ Settings: improvedtube.json ⚬ OS: Win 11 ⚬ Device: PC

xeophyte avatar Jan 31 '24 23:01 xeophyte

hi! looks like you you want it hidden when paused

https://github.com/code-charity/youtube/pull/1572

ImprovedTube avatar Feb 01 '24 20:02 ImprovedTube

Yes, but when the cursor hover over it, it should not hide regardless if the video is paused or playing, so it should react the same as original YT (without extension). Now, with "Hide player controls bar" option set to "When paused", it is difficult to use the progress bar.

xeophyte avatar Feb 01 '24 22:02 xeophyte

This is standard YT behavior. YT does same thing without extension

raszpl avatar Mar 04 '24 08:03 raszpl

No, without extension it doesn't disappear: vivaldi - 2024 03 04_12 30 50

xeophyte avatar Mar 04 '24 11:03 xeophyte

logged into YT? I have not logged standalone chrome installed with no extensions and in that stock not logged in Chrome status disappears after 2 seconds. Now the funny thing is It was disappearing for me in Vivaldi + logged into YT + improvetube 7 hours ago, but it doesnt now when hovering over Pause/Next or seek bar :D. Even with improvetube disabled it still doesnt disappear. Maybe uBlock does the magic here?

raszpl avatar Mar 04 '24 16:03 raszpl

Yes, logged into YT, tried witohut any other extensions and it still disappears. But then it's strange because when I enable other extensions back, control bar doesn't disappear... until I pause/play or use seek bar, it starts to disappear again.

xeophyte avatar Mar 04 '24 16:03 xeophyte

all in all it doesnt appear to be improvetube fault, can we agree its not a improvetube bug?

raszpl avatar Mar 04 '24 16:03 raszpl

But this still occurs only with this extension. Check with my settings, refresh the YT page and click pause/seek bar, then hover over the scroll bar/play button improvedtube.json

xeophyte avatar Mar 04 '24 17:03 xeophyte

The fact seekbar doesnt disappear for me without any extensions tells me this is YouTube screwing with users, you might be getting server one of google experimental UI versions

raszpl avatar Mar 04 '24 20:03 raszpl

I'm not in the experimental program because the bar doesn't disappear without IYT extension with "Hide player controls bar" option set to "When paused". Set "Hide player controls bar" option to "When paused" and then click pause - the bar will disappear.

xeophyte avatar Mar 04 '24 20:03 xeophyte

I had opportunity to look at playerControls() https://github.com/code-charity/youtube/issues/2381 in more details. Default YT with no extensions 'hover cursor over player control bar' disappears if I hover cursor over upper edge of the seek line :0 thats where the confusion came from. As long as tip of finger icon is right on top of the line it stays, if it goes one pixel over it will still render thumbnail, but disappears after 1-2 seconds.

TLDR there are two elements

<div class="ytp-progress-bar-padding"></div>
<div class="ytp-progress-list">...</div>

first one is way thicker, both trigger thumbnail display, when testing I was hovering over the thicker one Fix: https://github.com/code-charity/youtube/pull/2382

raszpl avatar Jun 15 '24 15:06 raszpl

Looks like fixed to me in 4.1007.

xeophyte avatar Jun 25 '24 18:06 xeophyte