make moved a separate prop on item

This commit is contained in:
Kevin Jahns
2021-11-08 18:33:26 +01:00
parent 53a7b286b8
commit 56ab251e79
3 changed files with 250 additions and 54 deletions

View File

@@ -443,7 +443,7 @@ export class ListPosition {
this.rel = 0
}
while (item && !this.reachedEnd && (len > 0 || (len === 0 && (!item.countable || item.deleted)))) {
if (item.countable && !item.deleted && item.movedBy === this.currMove) {
if (item.countable && !item.deleted && item.moved === this.currMove) {
len -= item.length
if (len <= 0) {
this.rel = -len