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

fix: sticky chapter on mouseout #1005

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

luwes
Copy link
Contributor

@luwes luwes commented Oct 8, 2024

fix #999

I can't reproduce it anymore so hopefully fixed.

the bug happened when updateSegments was called multiple times, easier to reproduce with preload none.
insertCSSRule created a rule every time updateSegments was called so it possibly happened while the user hovered over a chapter.

@luwes luwes self-assigned this Oct 8, 2024
@luwes luwes requested review from heff and a team as code owners October 8, 2024 20:04
Copy link

vercel bot commented Oct 8, 2024

@luwes is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
media-chrome ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 8:05pm
media-chrome-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 8:05pm

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.94%. Comparing base (3ea80df) to head (af03650).
Report is 129 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1005      +/-   ##
==========================================
- Coverage   78.55%   76.94%   -1.62%     
==========================================
  Files          59       50       -9     
  Lines       11080    12093    +1013     
  Branches        0      699     +699     
==========================================
+ Hits         8704     9305     +601     
- Misses       2376     2762     +386     
- Partials        0       26      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -388,6 +387,10 @@ class MediaChromeRange extends globalThis.HTMLElement {
this.#cssRules.pointer = getOrInsertCSSRule(this.shadowRoot, '#pointer');
this.#cssRules.progress = getOrInsertCSSRule(this.shadowRoot, '#progress');
this.#cssRules.thumb = getOrInsertCSSRule(this.shadowRoot, '#thumb');
this.#cssRules.activeSegment = getOrInsertCSSRule(
Copy link
Collaborator

Choose a reason for hiding this comment

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

SMRT.

Copy link
Collaborator

@cjpillsbury cjpillsbury left a comment

Choose a reason for hiding this comment

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

Makes sense as a change per earlier out of band convo.

@luwes luwes merged commit cf792bd into muxinc:main Oct 8, 2024
6 of 8 checks passed
@luwes luwes deleted the fix-sticky-chapter branch October 8, 2024 21:45
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.

sticky timeline chapters
2 participants