!482 【master】【OpenHarmony 4.1.2.2】【应用子系统】【ToC】【RK3568】【高概率-2/10】大图浏览沉浸模式,放大图片后复原回原尺寸,图片无法下拉返回

Merge pull request !482 from liujuan/master
This commit is contained in:
openharmony_ci 2023-12-20 02:10:56 +00:00 committed by Gitee
commit 6baf22e63e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -144,15 +144,11 @@ export struct PhotoSwiper {
.cachedCount(this.SWIPE_CACHE_COUNT)
.duration(BrowserConstants.PHOTO_SWIPE_DURATION)
.itemSpace(this.swiperItemSpace)
.parallelGesture(PanGesture({
direction: PanDirection.Horizontal
.onGestureSwipe(() => {
if (!this.isOnSwiperAnimation) {
this.isOnSwiperAnimation = true;
}
})
.onActionStart((event?: GestureEvent) => {
if (!this.canSwipe) {
this.isOnSwiperAnimation = true;
}
})
)
.index(this.currentIndex)
.indicator(false)
.loop(false)