Skip to content

Commit

Permalink
Merge pull request #90 from erri120/fix/89
Browse files Browse the repository at this point in the history
Fix incrementing `-1` indices
  • Loading branch information
neuecc authored Dec 16, 2024
2 parents a16edc1 + 7c4974c commit 6f5de33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ protected override void Handler(in NotifyCollectionChangedEventArgs<T> eventArgs
eventArgs.Action,
item,
eventArgs.OldItem,
i++,
newStartingIndex: i,
eventArgs.OldStartingIndex,
eventArgs.SortOperation);

if (eventArgs.NewStartingIndex != -1) i++;

observer.OnNext(newArgs);
}
}
Expand Down

0 comments on commit 6f5de33

Please sign in to comment.