Using pointInside from Control.
This commit is contained in:
parent
a88bb1e0ff
commit
4a49c40b19
@ -289,13 +289,6 @@ public typealias ActionBlockConfirmation = () -> (Bool)
|
|||||||
// MARK: - UIResponder
|
// MARK: - UIResponder
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
override open func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
|
|
||||||
|
|
||||||
let faultTolerance: CGFloat = 20.0
|
|
||||||
let area = bounds.insetBy(dx: -faultTolerance, dy: -faultTolerance)
|
|
||||||
return area.contains(point)
|
|
||||||
}
|
|
||||||
|
|
||||||
open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
open override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||||
|
|
||||||
UIView.animate(withDuration: 0.1, animations: {
|
UIView.animate(withDuration: 0.1, animations: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user