Commit d4f43f1d authored by carlos's avatar carlos

fix: resolve #14 console error when scroll

parent 6f2249a1
......@@ -124,7 +124,9 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
return;
}
e.preventDefault();
if (e.cancelable) {
e.preventDefault();
}
if ((this.currentY - this.startY) >= this.props.pullDownThreshold) {
this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment