Commit caa2d776 authored by 李勇諭's avatar 李勇諭

fix pull region

parent a00dbe74
......@@ -72,7 +72,8 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
private onTouchStart(e) {
this.startY = e["pageY"] || e.touches[0].pageY;
this.currentY = this.startY;
if (this.startY > 40) {
const top = this.container.getBoundingClientRect().y;
if (this.startY - top > 40) {
return;
}
......
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