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

Update watch page chapter component to scroll to current chapter on expand #3610

Conversation

PikachuEXE
Copy link
Collaborator

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Similar to #3399

Description

Very annoying to have to scroll & find current chapter after watching video for several chapters and then expand the chapter panel
This PR makes expanding also scroll to current chapter in the chapter panel

Screenshots

Before:
image
After:
image

Testing

  • Find a video with chapters, the more the better, e.g. https://youtu.be/IL2P1IB-2nc
  • Update progress to some chapters later
  • Expand chapter panel
  • Ensure current chapter in sight

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 30, 2023
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 30, 2023 02:23
// Must wait until rendering done after value change
nextTick(() => {
if (container != null && currentChaptersItem != null) {
// Watch view can be ready sooner than this component
Copy link
Member

Choose a reason for hiding this comment

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

This comment seems like a copy paste issue, as it doesn't seem relevant here (presumably this came from the playlist component).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed

Copy link
Member

Choose a reason for hiding this comment

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

lgtm

@PikachuEXE
Copy link
Collaborator Author

@absidue ~

@FreeTubeBot FreeTubeBot merged commit 27e9a22 into FreeTubeApp:development Jun 2, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 2, 2023
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.

5 participants