Fixed scrolling to top when endless scroll enabled
This commit is contained in:
parent
60f4dd9d4a
commit
54f07f5a90
5 changed files with 1 additions and 4 deletions
|
@ -84,7 +84,6 @@ App.Presenters.GlobalCommentListPresenter = function(
|
|||
|
||||
$target.append($post);
|
||||
});
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
@ -94,6 +94,7 @@ App.Presenters.PagerPresenter = function(
|
|||
|
||||
if (forceClear || !endlessScroll) {
|
||||
clearContent();
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
var $page = jQuery('<div class="page">');
|
||||
if (endlessScroll && pager.getTotalPages() > 1) {
|
||||
|
|
|
@ -113,7 +113,6 @@ App.Presenters.PostListPresenter = function(
|
|||
}
|
||||
});
|
||||
windowResized();
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
function shouldSkipPost(post) {
|
||||
|
|
|
@ -120,7 +120,6 @@ App.Presenters.TagListPresenter = function(
|
|||
}));
|
||||
$target.append($item);
|
||||
});
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
@ -78,7 +78,6 @@ App.Presenters.UserListPresenter = function(
|
|||
$target.append($item);
|
||||
});
|
||||
_.map(_.map($target.find('img'), jQuery), util.loadImagesNicely);
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue