[bugfix] PullRefresh: only triggered when drag vertical direction

This commit is contained in:
ZhiRu 2018-01-09 16:35:52 +08:00 committed by neverland
parent 0b33cbddb6
commit 7278d90c12

View File

@ -111,9 +111,9 @@ export default create({
if (this.ceiling && this.deltaY >= 0) {
if (this.direction === 'vertical') {
this.getStatus(this.ease(this.deltaY));
event.preventDefault();
}
this.getStatus(this.ease(this.deltaY));
}
},