Skip to content

Commit 9023196

Browse files
authored
Merge pull request #30 from owenliang/gh-pages
back to top when force trigger pull
2 parents 7feb997 + 4a471ba commit 9023196

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pullToRefresh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ function (container, option) {
318318
if (refreshEvent || finalOption.noRefresh) {
319319
return false;
320320
}
321+
// 滚动到顶部
322+
iscroll.scrollTo(0, 0, 0);
321323
// 暂停可能正在进行的最终阶段回弹动画
322324
pullToRefresh.removeClass("backTranTop");
323325
// 小图标移动到lowerbound位置

0 commit comments

Comments
 (0)