applying threshold detection only to topics

re: #4477
This commit is contained in:
Julian Lam
2016-03-28 14:02:56 -04:00
parent e0f6b4edf0
commit 31e70ac5a8

View File

@@ -119,7 +119,7 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
});
// If a threshold is undefined, try to determine one based on new index
if (threshold === undefined) {
if (threshold === undefined && ajaxify.currentPage.startsWith('topic')) {
var anchorEl = components.get('post/anchor', index - 1),
anchorRect = anchorEl.get(0).getBoundingClientRect();