fix: removal of scroll anchoring code in favour of browser handling

closes #6150
This commit is contained in:
Julian Lam
2018-11-20 16:56:54 -05:00
parent e1597b8337
commit 98c14e0e68
7 changed files with 3 additions and 131 deletions

View File

@@ -207,7 +207,7 @@ define('forum/topic', [
return index;
};
Topic.navigatorCallback = function (index, elementCount, threshold) {
Topic.navigatorCallback = function (index, elementCount) {
var path = ajaxify.removeRelativePath(window.location.pathname.slice(1));
if (!path.startsWith('topic')) {
return;
@@ -217,8 +217,6 @@ define('forum/topic', [
return;
}
images.loadImages(threshold);
var newUrl = 'topic/' + ajaxify.data.slug + (index > 1 ? ('/' + index) : '');
if (newUrl !== currentUrl) {