Skip to content

Commit

Permalink
Fix disableScrollVolume not working (fix #4381)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Sep 23, 2023
1 parent 3a25af1 commit 8e92d08
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import { allVideoUrls } from '@/core/utils/urls'
let cancel: () => void
export const disableScrollVolume = () => {
return preventEvent(unsafeWindow, 'mousewheel', () => {
const isFullscreen = ['player-mode-full', 'player-fullscreen-fix', 'player-full-win'].some(
token => document.body.classList.contains(token),
)
const isFullscreen = [
'player-mode-full',
'player-mode-web',
'player-fullscreen-fix',
'player-full-win',
].some(token => document.body.classList.contains(token))
return isFullscreen
})
}
Expand Down

0 comments on commit 8e92d08

Please sign in to comment.