mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 16:02:44 +08:00
BUGFIX: scrolled never ever fired :(
This commit is contained in:
parent
d1fa8afb3b
commit
e129e4a19e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user