mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 13:50:36 +01:00
Make progress bar finer
This commit is contained in:
@@ -165,7 +165,7 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, co
|
||||
index = index > count ? count : index;
|
||||
|
||||
$('.pagination-block .pagination-text').translateHtml('[[global:pagination.out_of, ' + index + ', ' + count + ']]');
|
||||
$('.pagination-block .progress-bar').width((index / count * 100) + '%');
|
||||
$('.pagination-block .progress-bar').width(($(window).scrollTop() / ($(document).height() - $(window).height()) * 100) + '%');
|
||||
};
|
||||
|
||||
navigator.scrollUp = function () {
|
||||
|
||||
Reference in New Issue
Block a user