Skip to content

[Bug] Like/Dislike ratio bar are disappearing permanently when scrolled out of viewport #1252

@Enderjua

Description

@Enderjua

hey, found a bug with the dislike ratio bar. when you scroll down to read comments or something, the green/red bar under the like/dislike buttons just vanishes. when you scroll back up, it's gone completely. only comes back if you refresh the page or click like/dislike.

pretty annoying tbh, especially on longer videos where you're constantly scrolling.

  1. open any video (tried it on several)
  2. scroll down until the buttons go off screen
  3. scroll back up
  4. the bar is missing

the bar should still be there when i scroll back up

bar's gone until i interact with it somehow

my setup:

  • firefox (arch linux)
  • latest extension version
  • happens on both old and new youtube design

what did i do:
looks like there's an isInViewport check in src/bar.js that removes the element when it goes off screen. probably meant to clean up stale elements from youtube's spa navigation, but it's also removing the bar when you just scroll normally.

maybe just let the browser handle off-screen elements? they don't really cost anything performance-wise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions