Skip to content

Commit

Permalink
fix: hide cursor on media when controls fade out (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Nov 3, 2023
1 parent e45c66e commit bbc81d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/media-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ template.innerHTML = /*html*/`
transition: opacity 1s;
}
:host([${Attributes.USER_INACTIVE}]:not([${MediaUIAttributes.MEDIA_PAUSED}]):not([${MediaUIAttributes.MEDIA_IS_CASTING}]):not([${Attributes.AUDIO}])) ::slotted([slot=media]) {
cursor: none;
}
::slotted(media-control-bar) {
align-self: stretch;
}
Expand Down

1 comment on commit bbc81d7

@vercel
Copy link

@vercel vercel bot commented on bbc81d7 Nov 3, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.