wangliang_wd

feat:优化短视频滑动效果

... ... @@ -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) => {
... ...
... ... @@ -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())
... ...