From de8035bc5cf44c83192d0d6ad0eaef1bfa406648 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Thu, 11 May 2023 15:45:09 -0500 Subject: [PATCH] fix: show chrome on pointermove for custom video (#604) this makes media chrome show the controls even when the pointermove is detected from `media-controller`. for some custom video elements is not possible always to detect this from the media element itself because of pointerevents none on the child elements in the media element. I think it's okay but let me know if you see any issues with this fixes #451 related #298 --- src/js/media-container.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/js/media-container.js b/src/js/media-container.js index eba6dc513..a806d80c8 100644 --- a/src/js/media-container.js +++ b/src/js/media-container.js @@ -498,8 +498,6 @@ class MediaContainer extends window.HTMLElement { // so, only run pointermove for mouse if (e.pointerType !== 'mouse') return; - if (e.target === this) return; - setActive(); // Stay visible if hovered over control bar window.clearTimeout(this._inactiveTimeout);