mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Fix bug when dragging the scrubber
This commit is contained in:
parent
3fba2bd5d8
commit
43574f82e9
|
@ -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…
Reference in New Issue
Block a user