Skip to content

Commit

Permalink
fix: 小程序setData异步队列,导致上拉抖动
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrixi committed Sep 26, 2019
1 parent c9d003e commit c1984c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/list-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class ListView extends Component<Props, State> {
}

touchEvent = (e: ITouchEvent) => {

const {type, touches} = e;
const {onPullDownRefresh, distanceToRefresh, damping} = this.props;
if (!onPullDownRefresh) return;
Expand All @@ -124,7 +123,6 @@ class ListView extends Component<Props, State> {
break;
}
case 'touchmove': {
// const { clientY: preClientY = 1 } = this.state.blockStyle;
const {clientY} = touches[0];
const {touchScrollTop} = this.state;
const height = Math.floor((clientY - this.startY) / 5);
Expand Down

0 comments on commit c1984c1

Please sign in to comment.