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-18 14:50:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7fe5e0cf67c73b9f3725021745f618c8f066fa05
7fe5e0cf
1 parent
7bd282e6
feat:优化短视频滑动效果
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
View file @
7fe5e0c
...
...
@@ -459,9 +459,11 @@ export struct DetailVideoListPage {
.disableSwipe(this.displayDirection === DisplayDirection.VERTICAL || this.showCommentList ?
false : true)
.indicator(false)
.duration(200)
.vertical(true)
.loop(false)
.width('100%')
.cachedCount(3)
.height('100%')
.displayCount(1, true)
.onChange((index: number) => {
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
View file @
7fe5e0c
...
...
@@ -372,6 +372,7 @@ export struct VideoChannelDetail {
.curve(Curves.initCurve(Curve.EaseIn))
.width('100%')
.height('100%')
.duration(200)
.onChange((index: number) => {
this.currentIndex = index
// console.info('onChange==', index.toString())
...
...
Please
register
or
login
to post a comment