mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Pass taps in non actionable views in tooltips to main window
commit_hash:5956c1f9ae13249bbc97b50afd51ea45193c5a2f
This commit is contained in:
@@ -70,7 +70,15 @@ public final class TooltipContainerView: UIView, UIActionEventPerforming {
|
||||
}
|
||||
return nil
|
||||
} else {
|
||||
return super.hitTest(point, with: event)
|
||||
let result = super.hitTest(point, with: event)
|
||||
if result === tooltip.view {
|
||||
DispatchQueue.main.async {
|
||||
self.close(animated: true)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user