Added threshold detection when scrolling upwards

... for less jolty upwards scrolling.
This commit is contained in:
Julian Lam
2016-03-28 01:53:36 -04:00
parent 28db642050
commit add82ba6c9
3 changed files with 16 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ define('forum/topic', [
return navigator.scrollToPostIndex(postIndex, true);
}
} else if (bookmark && (!config.usePagination || (config.usePagination && ajaxify.data.pagination.currentPage === 1)) && ajaxify.data.postcount > 5) {
navigator.update();
navigator.update(0);
app.alert({
alert_id: 'bookmark',
message: '[[topic:bookmark_instructions]]',
@@ -158,7 +158,7 @@ define('forum/topic', [
app.removeAlert('bookmark');
}, 10000);
} else {
navigator.update();
navigator.update(0);
}
}