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 9a0a461 commit 858d305Copy full SHA for 858d305
1 file changed
Sources/SelectableCollectionView/Views/InteractiveCollectionView.swift
@@ -79,8 +79,14 @@ class InteractiveCollectionView: NSCollectionView {
79
return super.menu(for: event)
80
}
81
82
- override func mouseDown(with event: NSEvent) {
+ override func hitTest(_ point: NSPoint) -> NSView? {
83
+ guard NSApp.isActive else {
84
+ return nil
85
+ }
86
+ return super.hitTest(point)
87
88
89
+ override func mouseDown(with event: NSEvent) {
90
window?.makeFirstResponder(self)
91
92
let position = self.convert(event.locationInWindow, from: nil)
0 commit comments