Skip to content

Commit

Permalink
fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stillsilly authored May 9, 2018
1 parent cbae23f commit 42a0673
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/common/wepy-swipe-delete.wpy
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ export default class Counter extends wepy.component {
tm(e) {
if (e.touches.length === 1) {
// 手指起始点位置与移动期间的差值
var distenceX = this.moveX - e.touches[0].clientX
var distanceX = this.moveX - e.touches[0].clientX
this.moveX = e.touches[0].clientX

if ((this.swipeData.style - distenceX) < -140) {
if ((this.swipeData.style - distanceX) < -140) {
this.swipeData.style = -140
} else if ((this.swipeData.style - distenceX) > 0) {
} else if ((this.swipeData.style - distanceX) > 0) {
this.swipeData.style = 0
} else {
this.swipeData.style = this.swipeData.style - distenceX
this.swipeData.style = this.swipeData.style - distanceX
}
this.setData({
swipeData: this.props.swipeData
Expand Down

0 comments on commit 42a0673

Please sign in to comment.