-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Media Controls not fading on click/tap when up. #13675
Media Controls not fading on click/tap when up. #13675
Conversation
EWS run on previous version of this PR (hash a205297) |
if (includeContainer && this.element === tappedElement) | ||
return true; | ||
|
||
if (tappedElement.classList.contains("backdrop")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we set pointer-events: none
on the backdrop
element instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try it!
a205297
to
802fce9
Compare
EWS run on current version of this PR (hash 802fce9) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Commit message is missing the changed file: Source/WebCore/Modules/modern-media-controls/controls/media-controls.css
.
https://bugs.webkit.org/show_bug.cgi?id=256565 rdar://109126598 Reviewed by Aditya Keerthi. The code to check if a tap/click is in/on a media element was returing true because of the "backdrop" element, which should not count as a media control, even though it is part of the shadowdom. We should not have pointer-events active on this element. Also, I removed the code about also checking the container, as it was not being used anywhere. * Source/WebCore/Modules/modern-media-controls/controls/media-controls.js: (MediaControls.prototype.isPointInControls): Canonical link: https://commits.webkit.org/263987@main
802fce9
to
4c392f8
Compare
Committed 263987@main (4c392f8): https://commits.webkit.org/263987@main Reviewed commits have been landed. Closing PR #13675 and removing active labels. |
4c392f8
802fce9