BUGFIX: scrolled never ever fired :(
This commit is contained in:
parent
d1fa8afb3b
commit
e129e4a19e
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,8 @@ Discourse.ScreenTrack = Ember.Object.extend({
|
||||||
this.set('interval', setInterval(function () {
|
this.set('interval', setInterval(function () {
|
||||||
self.tick();
|
self.tick();
|
||||||
}, 1000));
|
}, 1000));
|
||||||
|
|
||||||
|
$(window).on('scroll.screentrack', function(){self.scrolled()});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set('topicId', topicId);
|
this.set('topicId', topicId);
|
||||||
|
@ -42,7 +44,7 @@ Discourse.ScreenTrack = Ember.Object.extend({
|
||||||
// already stopped no need to "extra stop"
|
// already stopped no need to "extra stop"
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$(window).off('scroll.screentrack');
|
||||||
this.tick();
|
this.tick();
|
||||||
this.flush();
|
this.flush();
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|
Reference in a new issue