|
|
@ -143,10 +143,12 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
|
|
|
|
threshold = 0;
|
|
|
|
threshold = 0;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var anchorEl = components.get('post/anchor', index - 1);
|
|
|
|
var anchorEl = components.get('post/anchor', index - 1);
|
|
|
|
|
|
|
|
if (anchorEl.length) {
|
|
|
|
var anchorRect = anchorEl.get(0).getBoundingClientRect();
|
|
|
|
var anchorRect = anchorEl.get(0).getBoundingClientRect();
|
|
|
|
threshold = anchorRect.top;
|
|
|
|
threshold = anchorRect.top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof navigator.callback === 'function') {
|
|
|
|
if (typeof navigator.callback === 'function') {
|
|
|
|
navigator.callback(index, count, threshold);
|
|
|
|
navigator.callback(index, count, threshold);
|
|
|
|