Harden Sentry crash guards and reduce noisy events

This commit is contained in:
Lawrence Chen 2026-02-25 13:06:04 -08:00
parent b8947b7052
commit baee7c6e85
2 changed files with 34 additions and 4 deletions

View file

@ -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 }