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 46e3843 commit 06e1faf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Marker/Marker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ public class Marker: UIView {
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
// 作为展示视图时,不响应任何点击事件
if current.pin {
return current.marker?.superview?.hitTest(point, with: event) ?? current.marker
let newPoint: CGPoint = self.convert(point, to: current.marker?.superview)
return current.marker?.superview?.hitTest(newPoint, with: event) ?? current.marker
}
if current.isOnlyAcceptHighlightRange, current.isEventPenetration,
let markView = current.marker, let markSuperview = markView.superview {
Expand Down

0 comments on commit 06e1faf

Please sign in to comment.