Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-10-30 17:24:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc10921a155ccee44225ca241a9594a6f8da1203
fc10921a
1 parent
2ce5c50e
feat:回滚视频详情页全屏转屏逻辑
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
fc10921
...
...
@@ -78,6 +78,7 @@ export struct DetailPlayShortVideoPage {
* 页面转屏参数变化
*/
displayDirectionChange(){
///增加定时器,配合转屏UI布局
let timer = setTimeout(() => {
this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true
clearTimeout(timer)
...
...
@@ -403,10 +404,10 @@ export struct DetailPlayShortVideoPage {
.height('100%')
.width('100%')
.onAreaChange(() => {
let timer = setTimeout(() => {
//
let timer = setTimeout(() => {
this.calculatePlayerRect()
clearTimeout(timer)
}, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
// clearTimeout(timer)
// }, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
})
}
...
...
Please
register
or
login
to post a comment