diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs index 735b07b11cc..7a2ffa26651 100644 --- a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs @@ -1,4 +1,5 @@ -{{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount}} +{{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount as |discoveryTopicList|}} + {{log discoveryTopicList}} {{#if top}}
{{period-chooser period=period action=(action "changePeriod")}} @@ -22,6 +23,7 @@ expandGloballyPinned=expandGloballyPinned expandAllPinned=expandAllPinned scrollOnLoad=true + onScroll=discoveryTopicList.saveScrollPosition category=category}} {{/if}} {{/discovery-topics-list}}