mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-24 07:31:15 +01:00
fix: navigator not showing up on first load
This commit is contained in:
@@ -361,7 +361,7 @@ define('navigator', ['forum/pagination', 'components', 'hooks', 'alerts', 'trans
|
||||
unreadEl.style.height = `${trackHeight * percentage}px`;
|
||||
|
||||
const thumbEl = trackEl.querySelector('.scroller-thumb');
|
||||
const thumbBottom = parseInt(thumbEl.style.top, 10) + parseInt(thumbEl.style.height, 10);
|
||||
const thumbBottom = parseInt(thumbEl.style.top || 0, 10) + parseInt(thumbEl.style.height, 10);
|
||||
const anchorEl = unreadEl.querySelector('.meta a');
|
||||
const remaining = ajaxify.data.postcount - index;
|
||||
if (remaining > 0 && (trackHeight - thumbBottom) > 50) {
|
||||
|
||||
Reference in New Issue
Block a user