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 () {
|
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 New Issue
Block a user