Skip to content

Commit 7d0f6e9

Browse files
committed
clean code
1 parent 486a378 commit 7d0f6e9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/PullToRefresh.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ export default class PullToRefresh extends React.Component<PropsType, any> {
156156
onTouchMove = (ele: any, e: any) => {
157157
// 使用 pageY 对比有问题
158158
const _screenY = e.touches[0].screenY;
159-
let direction = '';
160159
if (this.props.direction === UP_DOWN) {
161160
// if props.direction = up_down, auto detect direction when ontouchmove
162161
this._direction = this._startScreenY > _screenY ? UP : DOWN;

0 commit comments

Comments
 (0)