mirror of
https://github.com/flarum/core.git
synced 2025-05-08 16:35:26 +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', '');
|
$('body').css('cursor', '');
|
||||||
|
|
||||||
var view = event.data.view;
|
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-
|
// If the index we've landed on is in a gap, then tell the stream-
|
||||||
// content that we want to load those posts.
|
// content that we want to load those posts.
|
||||||
var intIndex = Math.floor(view.get('index'));
|
var intIndex = Math.floor(view.get('index'));
|
||||||
if (view.get('stream').findNearestToIndex(intIndex).gap) {
|
if (view.get('stream').findNearestToIndex(intIndex).gap) {
|
||||||
view.get('streamContent').send('goToIndex', intIndex);
|
view.get('streamContent').send('goToIndex', intIndex);
|
||||||
|
} else {
|
||||||
|
view.set('streamContent.paused', false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user