mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
i think this is fine now?
This commit is contained in:
parent
e34a92e2ec
commit
7b38df45da
@ -161,7 +161,6 @@ export class ListRange extends Range {
|
|||||||
return {type: ResultType.Move, fromIdx, toIdx};
|
return {type: ResultType.Move, fromIdx, toIdx};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO
|
|
||||||
const addIdx = this.clampIndex(toIdx);
|
const addIdx = this.clampIndex(toIdx);
|
||||||
const removeIdx = this.clampIndex(fromIdx);
|
const removeIdx = this.clampIndex(fromIdx);
|
||||||
const addValue = addIdx === toIdx ? value : getIteratorValueAtIdx(list[Symbol.iterator](), addIdx)!;
|
const addValue = addIdx === toIdx ? value : getIteratorValueAtIdx(list[Symbol.iterator](), addIdx)!;
|
||||||
|
Loading…
Reference in New Issue
Block a user