Skip to content

Commit 1526c81

Browse files
zhengyanan18zhengyanan1
authored andcommitted
fix: 修复「店铺-h5」Android原生端沉浸式下拉 跟swiper的冲突问题
1 parent 0eddaa8 commit 1526c81

File tree

2 files changed

+4
-0
lines changed
  • packages
    • taro-components-react/src/components/swiper
    • taro-components/src/components/swiper

2 files changed

+4
-0
lines changed

packages/taro-components-react/src/components/swiper/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ class SwiperInner extends React.Component<SwiperProps, SwiperState> {
189189
nested: true,
190190
loopAdditionalSlides,
191191
centeredSlides,
192+
touchReleaseOnEdges: true,
193+
threshold: 0,
192194
...effectsProps,
193195
on: {
194196
init (_swiper) {

packages/taro-components/src/components/swiper/swiper.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ export class Swiper implements ComponentInterface {
325325
centeredSlides: centeredSlides,
326326
zoom: this.zoom,
327327
nested: true,
328+
touchReleaseOnEdges: true,
329+
threshold: 0,
328330
...effectsProps,
329331
on: {
330332
transitionEnd(e) {

0 commit comments

Comments
 (0)