mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +02:00
Fix bug when dragging the scrubber
This commit is contained in:
parent
774b74dd0f
commit
9c02ad518b
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user