Skip to content

Limit time tooltip display offset to playable range width - #629

Merged
Dananji merged 1 commit into
mainfrom
time-tooltip-offset
Aug 29, 2024
Merged

Limit time tooltip display offset to playable range width#629
Dananji merged 1 commit into
mainfrom
time-tooltip-offset

Conversation

@Dananji

@Dananji Dananji commented Aug 27, 2024

Copy link
Copy Markdown
Collaborator

When mouse pointer is hovering over the blocked parts of the progress-bar, the time tool-tip is displayed outside of the progress-bar container.
This PR fixes the alignment of the time tool-tip by limiting the calculated offset to always align tool-tip with the playable range of the media.

Before:
Screenshot 2024-08-27 at 4 03 51 PM

After:

Screenshot 2024-08-27 at 4 05 02 PM

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks tricky! I don't totally get it but looks fine to me.

@Dananji
Dananji merged commit df6d816 into main Aug 29, 2024
@Dananji
Dananji deleted the time-tooltip-offset branch August 29, 2024 15:42
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.

2 participants