From 739000425321f3e0998bde0136e97d986f8642a0 Mon Sep 17 00:00:00 2001 From: liujuan Date: Tue, 19 Dec 2023 03:05:20 +0000 Subject: [PATCH 1/4] update common/src/main/ets/default/view/PhotoSwiper.ets. Signed-off-by: liujuan --- common/src/main/ets/default/view/PhotoSwiper.ets | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/src/main/ets/default/view/PhotoSwiper.ets b/common/src/main/ets/default/view/PhotoSwiper.ets index d962c0db..58ef00f6 100644 --- a/common/src/main/ets/default/view/PhotoSwiper.ets +++ b/common/src/main/ets/default/view/PhotoSwiper.ets @@ -146,13 +146,7 @@ export struct PhotoSwiper { .itemSpace(this.swiperItemSpace) .parallelGesture(PanGesture({ direction: PanDirection.Horizontal - }) - .onActionStart((event?: GestureEvent) => { - if (!this.canSwipe) { - this.isOnSwiperAnimation = true; - } - }) - ) + })) .index(this.currentIndex) .indicator(false) .loop(false) From 052dda37762ad7cd06ae6b2a316a45c9b7e1851a Mon Sep 17 00:00:00 2001 From: liujuan Date: Tue, 19 Dec 2023 08:43:33 +0000 Subject: [PATCH 2/4] update common/src/main/ets/default/view/PhotoSwiper.ets. Signed-off-by: liujuan --- common/src/main/ets/default/view/PhotoSwiper.ets | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/src/main/ets/default/view/PhotoSwiper.ets b/common/src/main/ets/default/view/PhotoSwiper.ets index 58ef00f6..80877b3e 100644 --- a/common/src/main/ets/default/view/PhotoSwiper.ets +++ b/common/src/main/ets/default/view/PhotoSwiper.ets @@ -144,9 +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; + } + }) .index(this.currentIndex) .indicator(false) .loop(false) From 416fb0d168655b2b502a9a3ada05052b33f38c21 Mon Sep 17 00:00:00 2001 From: liujuan Date: Tue, 19 Dec 2023 08:58:37 +0000 Subject: [PATCH 3/4] update bundle.json. Signed-off-by: liujuan --- bundle.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bundle.json b/bundle.json index df41e401..c0796cc8 100644 --- a/bundle.json +++ b/bundle.json @@ -12,7 +12,9 @@ "component": { "name": "photos", "subsystem": "applications", - "syscap": [], + "syscap": [ + "SystemCapability.FileManagement.UserFileService" + ], "features": [], "adapted_system_type": [ "standard" @@ -24,7 +26,9 @@ "third_party": [] }, "build": { - "sub_component": [], + "sub_component": [ + "//applications/standard/photos:Photos" + ], "inner_kits": [], "test": [] } From d82a387adcdf83800863efeab94c76363137fa3b Mon Sep 17 00:00:00 2001 From: liujuan Date: Tue, 19 Dec 2023 09:43:12 +0000 Subject: [PATCH 4/4] update bundle.json. Signed-off-by: liujuan --- bundle.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bundle.json b/bundle.json index c0796cc8..df41e401 100644 --- a/bundle.json +++ b/bundle.json @@ -12,9 +12,7 @@ "component": { "name": "photos", "subsystem": "applications", - "syscap": [ - "SystemCapability.FileManagement.UserFileService" - ], + "syscap": [], "features": [], "adapted_system_type": [ "standard" @@ -26,9 +24,7 @@ "third_party": [] }, "build": { - "sub_component": [ - "//applications/standard/photos:Photos" - ], + "sub_component": [], "inner_kits": [], "test": [] }