Skip to content

Commit

Permalink
fix: Don't clear the selection when clicking on selected cells (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Mar 29, 2024
1 parent 75b8ff4 commit fd50e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Folders/Views/InteractiveCollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class InteractiveCollectionView: NSCollectionView {
cursor = indexPath
}

} else {
} else if !selectionIndexPaths.contains(indexPath) {

let selectionIndexPaths = selectionIndexPaths
deselectItems(at: selectionIndexPaths)
Expand Down

0 comments on commit fd50e15

Please sign in to comment.