Skip to content

A platform for community discussion. Free, open, simple.

FIX: don't trigger header:hide-topic at the bottom on desktops

Joec4fca3625543
diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6
index 1a107c96449..5705b73328e 100644
--- a/app/assets/javascripts/discourse/components/topic-progress.js.es6
+++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6
@@ -180,6 +180,10 @@ export default Ember.Component.extend({
}
// switch mobile scroll logo at the very bottom of topics
+
+ // not a mobile device so don't do anything
+ if (!this.site.mobileView) return;
+
const isIOS = this.capabilities.isIOS,
switchHeight = bodyHeight - offset - windowHeight,
appEvents = getOwner(this).lookup("app-events:main");