diff --git a/app/assets/javascripts/discourse/mixins/scrolling.js b/app/assets/javascripts/discourse/mixins/scrolling.js index b86631de22d..6178e46a33d 100644 --- a/app/assets/javascripts/discourse/mixins/scrolling.js +++ b/app/assets/javascripts/discourse/mixins/scrolling.js @@ -19,8 +19,12 @@ Discourse.Scrolling = Em.Mixin.create({ bindScrolling: function(opts) { opts = opts || {debounce: 100}; + // So we can not call the scrolled event while transitioning + var router = Discourse.__container__.lookup('router:main').router; + var self = this, onScrollMethod = function() { + if (router.activeTransition) { return; } return Em.run.scheduleOnce('afterRender', self, 'scrolled'); };