We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2da37 commit 0fc170fCopy full SHA for 0fc170f
1 file changed
Sources/SelectableCollectionView/Views/InteractiveCollectionView.swift
@@ -158,7 +158,9 @@ class InteractiveCollectionView: NSCollectionView {
158
cursor = indexPath
159
}
160
161
- } else {
+ } else if !selectionIndexPaths.contains(indexPath) {
162
+
163
+ // Select a clicked item if it's not within the current selection.
164
165
let selectionIndexPaths = selectionIndexPaths
166
deselectItems(at: selectionIndexPaths)
0 commit comments