diff --git a/gabau.github.io/src/pages/fun/SortVisPage.tsx b/gabau.github.io/src/pages/fun/SortVisPage.tsx index bb7e367..1249769 100644 --- a/gabau.github.io/src/pages/fun/SortVisPage.tsx +++ b/gabau.github.io/src/pages/fun/SortVisPage.tsx @@ -83,8 +83,7 @@ class InsertionSortState implements SortingState { } setScope(start: number, end: number) { - this.i = start; - this.currPos = start; + this.i = start + 1; this.middleOfLoop = false; this.end = end; }