Skip to content

Commit 6d27985

Browse files
authored
Merge pull request #187 from SISTF/suppress-auto-scroll
Suppress ScrollRowIntoView during multi‑selection
2 parents 0d49d90 + 31d0f24 commit 6d27985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void TableView_SelectionChanged(object sender, SelectionChangedEventArgs
7979
CurrentCellSlot = null;
8080
OnCellSelectionChanged();
8181

82-
if (SelectedIndex > 0)
82+
if (SelectedItems?.Count == 1)
8383
{
8484
DispatcherQueue.TryEnqueue(async () => await ScrollRowIntoView(SelectedIndex));
8585
}

0 commit comments

Comments
 (0)