mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
BUGFIX: scrolled never ever fired :(
This commit is contained in:
@@ -31,6 +31,8 @@ Discourse.ScreenTrack = Ember.Object.extend({
|
||||
this.set('interval', setInterval(function () {
|
||||
self.tick();
|
||||
}, 1000));
|
||||
|
||||
$(window).on('scroll.screentrack', function(){self.scrolled()});
|
||||
}
|
||||
|
||||
this.set('topicId', topicId);
|
||||
@@ -42,7 +44,7 @@ Discourse.ScreenTrack = Ember.Object.extend({
|
||||
// already stopped no need to "extra stop"
|
||||
return;
|
||||
}
|
||||
|
||||
$(window).off('scroll.screentrack');
|
||||
this.tick();
|
||||
this.flush();
|
||||
this.reset();
|
||||
|
||||
Reference in New Issue
Block a user