A platform for community discussion. Free, open, simple.
UX: Topic progress bar should not flash on desktop
Sam Saffron15b27f28aaa4
diff --git a/app/assets/javascripts/discourse/components/topic-navigation.js.es6 b/app/assets/javascripts/discourse/components/topic-navigation.js.es6index 7ff9ec0a230..d0075b87f2f 100644--- a/app/assets/javascripts/discourse/components/topic-navigation.js.es6+++ b/app/assets/javascripts/discourse/components/topic-navigation.js.es6@@ -42,8 +42,8 @@ export default Component.extend(PanEvents, {timelineContainer = document.querySelectorAll(".timeline-container")[0],- headerHeight =- document.querySelectorAll(".d-header")[0].offsetHeight || 0;+ headerContainer = document.querySelectorAll(".d-header")[0],+ headerHeight = (headerContainer && headerContainer.offsetHeight) || 0;if (timelineContainer && composer) {renderTimeline =@@ -61,7 +61,7 @@ export default Component.extend(PanEvents, {},_checkSize() {- debounce(this, this._performCheckSize, 300);+ debounce(this, this._performCheckSize, 300, true);},// we need to store this so topic progress has something to init with