Harden Sentry crash guards and reduce noisy events
This commit is contained in:
parent
b8947b7052
commit
baee7c6e85
2 changed files with 34 additions and 4 deletions
|
|
@ -254,11 +254,13 @@ func windowDragHandleShouldCaptureHit(_ point: NSPoint, in dragHandleView: NSVie
|
|||
}
|
||||
}
|
||||
|
||||
let siblingSnapshot = Array(superview.subviews.reversed())
|
||||
|
||||
#if DEBUG
|
||||
let siblingCount = superview.subviews.count
|
||||
let siblingCount = siblingSnapshot.count
|
||||
#endif
|
||||
|
||||
for sibling in superview.subviews.reversed() {
|
||||
for sibling in siblingSnapshot {
|
||||
guard sibling !== dragHandleView else { continue }
|
||||
guard !sibling.isHidden, sibling.alphaValue > 0 else { continue }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue