Fix: TLを遡った時に抜けがある時がある (v10) (#4629)

* Update the cursor when the timeline is updated

* fix releaseQueue
This commit is contained in:
MeiMei 2019-04-08 15:18:44 +09:00 committed by syuilo
parent fceebf7388
commit 82af9320c0
3 changed files with 6 additions and 0 deletions

View file

@ -157,6 +157,7 @@ export default Vue.extend({
// 稿 // 稿
if (this.notes.length >= displayLimit) { if (this.notes.length >= displayLimit) {
this.notes = this.notes.slice(0, displayLimit); this.notes = this.notes.slice(0, displayLimit);
this.cursor = this.notes[this.notes.length - 1].id
} }
} else { } else {
this.queue.push(note); this.queue.push(note);
@ -165,6 +166,7 @@ export default Vue.extend({
append(note) { append(note) {
this.notes.push(note); this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
}, },
releaseQueue() { releaseQueue() {

View file

@ -157,6 +157,7 @@ export default Vue.extend({
// 稿 // 稿
if (this.notes.length >= displayLimit) { if (this.notes.length >= displayLimit) {
this.notes = this.notes.slice(0, displayLimit); this.notes = this.notes.slice(0, displayLimit);
this.cursor = this.notes[this.notes.length - 1].id
} }
} else { } else {
this.queue.push(note); this.queue.push(note);
@ -165,6 +166,7 @@ export default Vue.extend({
append(note) { append(note) {
this.notes.push(note); this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
}, },
releaseQueue() { releaseQueue() {

View file

@ -151,6 +151,7 @@ export default Vue.extend({
// 稿 // 稿
if (this.notes.length >= displayLimit) { if (this.notes.length >= displayLimit) {
this.notes = this.notes.slice(0, displayLimit); this.notes = this.notes.slice(0, displayLimit);
this.cursor = this.notes[this.notes.length - 1].id
} }
} else { } else {
this.queue.push(note); this.queue.push(note);
@ -159,6 +160,7 @@ export default Vue.extend({
append(note) { append(note) {
this.notes.push(note); this.notes.push(note);
this.cursor = this.notes[this.notes.length - 1].id
}, },
releaseQueue() { releaseQueue() {