fix: selector for nav scroll

harmony doesn't have topic-header, they all have topic-main-buttons
This commit is contained in:
Barış Soner Uşaklı
2023-05-05 14:25:02 -04:00
parent 84548edbb3
commit 34730caf97

View File

@@ -662,7 +662,7 @@ define('navigator', [
const postHeight = scrollTo.outerHeight(true);
const navbarHeight = components.get('navbar').outerHeight(true) || 0;
const topicHeaderHeight = $('.topic-header').outerHeight(true) || 0;
const topicHeaderHeight = $('.topic-main-buttons').outerHeight(true) || 0;
const viewportHeight = $(window).height();
// Temporarily disable navigator update on scroll