Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iWECon committed Mar 18, 2022
1 parent 50585a8 commit 46e3843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Marker/Marker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ public class Marker: UIView {
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
// 作为展示视图时,不响应任何点击事件
if current.pin {
return current.marker?.hitTest(point, with: event) ?? current.marker
return current.marker?.superview?.hitTest(point, with: event) ?? current.marker
}
if !current.pin, current.isOnlyAcceptHighlightRange, current.isEventPenetration,
if current.isOnlyAcceptHighlightRange, current.isEventPenetration,
let markView = current.marker, let markSuperview = markView.superview {

let innertFrame = markSuperview.convert(markView.frame, to: self)
Expand Down

0 comments on commit 46e3843

Please sign in to comment.