Showing
1 changed file
with
7 additions
and
3 deletions
| @@ -390,9 +390,6 @@ export struct VideoChannelDetail { | @@ -390,9 +390,6 @@ export struct VideoChannelDetail { | ||
| 390 | .height('100%') | 390 | .height('100%') |
| 391 | .visibility(this.isMouted && this.GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden) | 391 | .visibility(this.isMouted && this.GestureLoadStrategy == 0 ? Visibility.Visible : Visibility.Hidden) |
| 392 | .backgroundColor('rgba(0, 0, 0, 0.50)') | 392 | .backgroundColor('rgba(0, 0, 0, 0.50)') |
| 393 | - .onTouch(() => { | ||
| 394 | - this.GestureLoadStrategy = 1 | ||
| 395 | - }) | ||
| 396 | // 手势动画 初次进入显示 | 393 | // 手势动画 初次进入显示 |
| 397 | if(this.isMouted && this.GestureLoadStrategy == 0) { | 394 | if(this.isMouted && this.GestureLoadStrategy == 0) { |
| 398 | LottieView({ | 395 | LottieView({ |
| @@ -409,5 +406,12 @@ export struct VideoChannelDetail { | @@ -409,5 +406,12 @@ export struct VideoChannelDetail { | ||
| 409 | .width('100%') | 406 | .width('100%') |
| 410 | .height('100%') | 407 | .height('100%') |
| 411 | .backgroundColor('#000000') | 408 | .backgroundColor('#000000') |
| 409 | + .onTouch(() => { | ||
| 410 | + if (this.isMouted && this.GestureLoadStrategy == 0) { | ||
| 411 | + ///解决首次加载动画滑动切换问题 | ||
| 412 | + this.GestureLoadStrategy = 1 | ||
| 413 | + this.swiperController.showNext() | ||
| 414 | + } | ||
| 415 | + }) | ||
| 412 | } | 416 | } |
| 413 | } | 417 | } |
-
Please register or login to post a comment