Skip to content

Commit

Permalink
fix(ui): duplicate subtitle (ios)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya authored Sep 4, 2024
1 parent 189cc4b commit aed6237
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/ui",
"version": "1.3.3-beta.7",
"version": "1.3.3-beta.8",
"description": "ui plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Setting.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const settingItemCls = $.css({
display: 'flex',
overflow: 'hidden',

// '& > *': { 'pointer-events': 'none' },
'& > *': { 'pointer-events': 'none' },

'&:hover': {
'background-color': 'rgba(255, 255, 255, 0.1)'
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/Subtitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ export class Subtitle {
id: '__Orz__'
}))

track.mode = 'hidden'
$.render(this.$iosTrack, $video)

track.mode = 'hidden'

this.player.on('fullscreenchange', ({ payload }) => {
if (payload.isWeb) return

Expand Down

0 comments on commit aed6237

Please sign in to comment.