From ac6e0e40f7082633a96180382eada2d34dd20fc3 Mon Sep 17 00:00:00 2001 From: ZiuChen Date: Tue, 9 May 2023 00:06:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E5=BA=94=20bpx.ts=20=E4=B8=AD?= =?UTF-8?q?=E7=B1=BB=E5=90=8D=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 全局搜索只找到了这一处,不知道还有没有其他地方 --- .../video/player/disable-scroll-volume/index.ts | 8 +++----- src/ui/_common.scss | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/registry/lib/components/video/player/disable-scroll-volume/index.ts b/registry/lib/components/video/player/disable-scroll-volume/index.ts index eb8852216..c653544d8 100644 --- a/registry/lib/components/video/player/disable-scroll-volume/index.ts +++ b/registry/lib/components/video/player/disable-scroll-volume/index.ts @@ -5,11 +5,9 @@ let cancel: () => void const prevent = () => { cancel?.() cancel = preventEvent(unsafeWindow, 'mousewheel', () => { - const isFullscreen = [ - 'player-mode-webfullscreen', - 'player-fullscreen-fix', - 'player-full-win', - ].some(token => document.body.classList.contains(token)) + const isFullscreen = ['player-mode-full', 'player-fullscreen-fix', 'player-full-win'].some( + token => document.body.classList.contains(token), + ) return isFullscreen }) } diff --git a/src/ui/_common.scss b/src/ui/_common.scss index 3e8c19574..9bde89995 100644 --- a/src/ui/_common.scss +++ b/src/ui/_common.scss @@ -145,8 +145,8 @@ left: 50%; transform: translateX(-50%) translateY(-50%); } -@mixin on-fullscreen($bodyClass: "*") { - #{selector-unify("body.player-mode-webfullscreen", $bodyClass)} &, +@mixin on-fullscreen($bodyClass: '*') { + #{selector-unify("body.player-mode-full", $bodyClass)} &, #{selector-unify("body.player-fullscreen-fix", $bodyClass)} &, #{selector-unify("body.player-full-win", $bodyClass)} & { @content;