Skip to content

Commit

Permalink
Fix hit test handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ShezHsky committed Jan 14, 2022
1 parent 6e352e6 commit d3adcb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PopoverGestureContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PopoverGestureContainer: UIView {
let excludedFrames = popover.attributes.dismissal.excludedFrames()
if excludedFrames.contains(where: { $0.contains(point) }) {
/// The touch hit an excluded view, so don't dismiss it.
continue
return super.hitTest(point, with: event)
}
}

Expand All @@ -101,7 +101,7 @@ class PopoverGestureContainer: UIView {
}

/// The touch did not hit any popover, so pass it through to the hit testing target.
return super.hitTest(point, with: event)
return nil
}

}

0 comments on commit d3adcb6

Please sign in to comment.