Skip to content

Commit

Permalink
update: fullscreen scrollable support firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Nov 3, 2024
1 parent b4fff84 commit 9ca8351
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 4.0.6

- 更新:播放页 播放器宽度调节相关样式
- 更新:播放页 网页全屏滚动支持Firefox
- 更新:播放页 网页全屏滚动、全屏滚动 支持Firefox
- 更新:部分功能细节

## 4.0.5
Expand Down
8 changes: 2 additions & 6 deletions src/modules/rules/bangumi/groups/playerLayout.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 2 additions & 6 deletions src/modules/rules/video/groups/playerLayout.ts
Original file line number Diff line number Diff line change
@@ -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'

// 禁用滚动调音量
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9ca8351

Please sign in to comment.