Skip to content

Commit

Permalink
fix: 修复4.0.5版本下ScrollView内嵌Swiper时,Swiper滑动无响应的问题 (#16563)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyanan1 authored Sep 20, 2024
1 parent 5f249fd commit d288a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class SwiperInner extends React.Component<SwiperProps, SwiperState> {
speed: parseInt(String(duration), 10),
observer: true,
observeParents: true,
nested: true,
loopAdditionalSlides,
centeredSlides,
...effectsProps,
Expand Down
1 change: 1 addition & 0 deletions packages/taro-components/src/components/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ export class Swiper implements ComponentInterface {
observer: true,
centeredSlides: centeredSlides,
zoom: this.zoom,
nested: true,
...effectsProps,
on: {
changeTransitionEnd(e) {
Expand Down

0 comments on commit d288a41

Please sign in to comment.