From 1766b418c6f557e6c56e06a7179ad061422a794e Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 15 Dec 2021 09:44:09 +0800 Subject: [PATCH] Remove old mobile chromecast css hack lbry-desktop--6844 This negates 49abbecb. Now that we have a dedicated chromecast button, we don't need to hack Chrome's default cast button to appear on top of vjs-mobile-ui. The hack no longer works anyway, since the CSS exposure has been deprecated around mid 2020 -- it is still available, but its abilities has become less and less. --- .../plugins/videojs-mobile-ui/touchOverlay.js | 23 +----------- ui/scss/component/_file-render.scss | 36 ------------------- 2 files changed, 1 insertion(+), 58 deletions(-) diff --git a/ui/component/viewers/videoViewer/internal/plugins/videojs-mobile-ui/touchOverlay.js b/ui/component/viewers/videoViewer/internal/plugins/videojs-mobile-ui/touchOverlay.js index 00fe9271d..8dd112926 100644 --- a/ui/component/viewers/videoViewer/internal/plugins/videojs-mobile-ui/touchOverlay.js +++ b/ui/component/viewers/videoViewer/internal/plugins/videojs-mobile-ui/touchOverlay.js @@ -34,7 +34,7 @@ class TouchOverlay extends Component { this.addChild('playToggle', {}); // Clear overlay when playback starts or with control fade - player.on(['playing', 'userinactive'], e => { + player.on(['playing', 'userinactive'], (e) => { if (!this.player_.paused()) { this.removeClass('show-play-toggle'); } @@ -104,27 +104,6 @@ class TouchOverlay extends Component { handleSingleTap(event) { this.removeClass('skip'); this.toggleClass('show-play-toggle'); - - // At the moment, we only have one