Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalPineapple committed Mar 19, 2024
1 parent 50ae673 commit ef2bfab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions BlueprintUILists/Sources/ListReorderGesture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ fileprivate extension ListReorderGesture
}

override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if UIAccessibility.isVoiceOverRunning {
if UIAccessibility.focusedElement(using: nil) as? NSObject == proxyElement {
// Intercept touch events to avoid activating contained elements.
return self
}
if UIAccessibility.isVoiceOverRunning,
UIAccessibility.focusedElement(using: nil) as? NSObject == proxyElement {
// Intercept touch events to avoid activating contained elements.
return self
}

return super.hitTest(point, with: event)
}

Expand Down

0 comments on commit ef2bfab

Please sign in to comment.