Skip to content

Commit

Permalink
fix(taro-components): 修复swiper 滑动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjinjin0731 committed Aug 22, 2018
1 parent 7105ef4 commit 79c3e25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/taro-components/src/components/swiper/swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,14 @@ class Swiper extends Nerv.Component {
items.unshift(lastItem)
}
// }

let wrapperStyle = {
width: this.state.wrapperWidth,
height: this.state.wrapperHeight,
transition: this.state.animating
? `transform ${duration}ms ease-in-out; webkitTransform ${duration}ms ease-in-out;`
? `transform ${duration}ms ease-in-out;`
: 'none',
transform: `translate(${!vertical ? this.state.translate : 0}px, ${
vertical ? this.state.translate : 0
}px)`,
webkitTransform: `translate(${!vertical ? this.state.translate : 0}px, ${
vertical ? this.state.translate : 0
}px)`
}

Expand Down

0 comments on commit 79c3e25

Please sign in to comment.