diff --git a/CHANGELOG.md b/CHANGELOG.md index b7f585d..8579688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 4.0.6 - 更新:播放页 播放器宽度调节相关样式 -- 更新:播放页 网页全屏滚动支持Firefox +- 更新:播放页 网页全屏滚动、全屏滚动 支持Firefox - 更新:部分功能细节 ## 4.0.5 diff --git a/src/modules/rules/bangumi/groups/playerLayout.ts b/src/modules/rules/bangumi/groups/playerLayout.ts index b18c23e..6b3e36d 100644 --- a/src/modules/rules/bangumi/groups/playerLayout.ts +++ b/src/modules/rules/bangumi/groups/playerLayout.ts @@ -1,6 +1,6 @@ import { unsafeWindow } from '$' import { Item } from '../../../../types/item' -import { isFirefox, waitForEle } from '../../../../utils/tool' +import { waitForEle } from '../../../../utils/tool' let webScroll = false let fullScroll = false @@ -74,12 +74,8 @@ export const bangumiPlayerLayoutItems: Item[] = [ type: 'switch', id: 'fullscreen-scrollable', name: '全屏时 页面可滚动 (实验功能)', - description: ['播放器内滚轮调节音量失效', '点击全屏按钮生效,双击全屏无效', 'Firefox 不适用'], + description: ['播放器内滚轮调节音量失效', '点击全屏按钮生效,双击全屏无效'], enableFn: async () => { - if (isFirefox()) { - return - } - disableTuneVolume() fullScroll = true diff --git a/src/modules/rules/video/groups/playerLayout.ts b/src/modules/rules/video/groups/playerLayout.ts index 5b68828..befe442 100644 --- a/src/modules/rules/video/groups/playerLayout.ts +++ b/src/modules/rules/video/groups/playerLayout.ts @@ -1,6 +1,6 @@ import { unsafeWindow } from '$' import { Item } from '../../../../types/item' -import { isFirefox, waitForEle } from '../../../../utils/tool' +import { waitForEle } from '../../../../utils/tool' import { wideScreenManager } from '../../../../utils/widePlayer' // 禁用滚动调音量 @@ -75,12 +75,8 @@ export const videoPlayerLayoutItems: Item[] = [ type: 'switch', id: 'fullscreen-scrollable', name: '全屏时 页面可滚动 (实验功能)', - description: ['播放器内滚轮调节音量失效', '点击全屏按钮时生效,双击全屏无效', 'Firefox 不适用'], + description: ['播放器内滚轮调节音量失效', '点击全屏按钮时生效,双击全屏无效'], enableFn: async () => { - if (isFirefox()) { - return - } - disableTuneVolume() fullScroll = true