FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Make chapter section scroll to current chapter when scroll into view port when expanded

Open PikachuEXE opened this issue 1 year ago • 0 comments

Pull Request Type

  • [ ] Bugfix
  • [x] Feature Implementation
  • [ ] Documentation
  • [ ] Other

Related issue

Description

Currently the chapter section only scroll to current chapter when expanded With this PR it scroll to current chapter when scrolled into view port (becomes visible) which is useful especially on videos with many chapters Users can still scroll around chapters when chapter section is visible

Screenshots

Start a video image

Change current timestamp image

Scroll back down image

Testing

  • Find a video with chapters (plenty in LTT)
  • Expand chapter section
  • Scroll up (and maybe resize window) until chapter section hidden
  • Change current timestamp (far away from current one would be easier for testing)
  • Scroll down and ensure current chapter at the new timestamp is scrolled to

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

PikachuEXE avatar Feb 27 '24 02:02 PikachuEXE