Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -81,7 +81,7 @@ export struct DetailPlayShortVideoPage { | @@ -81,7 +81,7 @@ export struct DetailPlayShortVideoPage { | ||
| 81 | let timer = setTimeout(() => { | 81 | let timer = setTimeout(() => { |
| 82 | this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true | 82 | this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true |
| 83 | clearTimeout(timer) | 83 | clearTimeout(timer) |
| 84 | - }, this.displayDirection === DisplayDirection.VERTICAL ?200:0) | 84 | + }, 200) |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | /** | 87 | /** |
| @@ -509,7 +509,7 @@ export struct DetailPlayShortVideoPage { | @@ -509,7 +509,7 @@ export struct DetailPlayShortVideoPage { | ||
| 509 | this.playerFullscreenBuilder() | 509 | this.playerFullscreenBuilder() |
| 510 | } | 510 | } |
| 511 | 511 | ||
| 512 | - if (this.displayDirection === DisplayDirection.VIDEO_HORIZONTAL && this.index === this.currentIndex) { | 512 | + if (this.isFullScreen && this.index === this.currentIndex) { |
| 513 | PlayerFullScreenView({ | 513 | PlayerFullScreenView({ |
| 514 | playerController: this.playerController | 514 | playerController: this.playerController |
| 515 | }) | 515 | }) |
-
Please register or login to post a comment