Fix bug when dragging the scrubber

This commit is contained in:
Toby Zerner 2015-01-26 11:58:49 +10:30
parent 3fba2bd5d8
commit 43574f82e9

View File

@ -203,13 +203,14 @@ export default Ember.Component.extend({
$('body').css('cursor', '');
var view = event.data.view;
view.set('streamContent.paused', false);
// If the index we've landed on is in a gap, then tell the stream-
// content that we want to load those posts.
var intIndex = Math.floor(view.get('index'));
if (view.get('stream').findNearestToIndex(intIndex).gap) {
view.get('streamContent').send('goToIndex', intIndex);
} else {
view.set('streamContent.paused', false);
}
},