Fixing case where events aren't forwarded
This commit is contained in:
parent
6f09034668
commit
08ec662e22
|
@ -115,10 +115,9 @@ public final class TouchesVisibleWindow: UIWindow {
|
||||||
touchViews[touch] = touchView
|
touchViews[touch] = touchView
|
||||||
|
|
||||||
case .moved:
|
case .moved:
|
||||||
guard let touchView = touchViews[touch] else {
|
if let touchView = touchViews[touch] {
|
||||||
return
|
touchView.center = touchLocation
|
||||||
}
|
}
|
||||||
touchView.center = touchLocation
|
|
||||||
|
|
||||||
case .ended, .cancelled:
|
case .ended, .cancelled:
|
||||||
cleanupTouch(touch)
|
cleanupTouch(touch)
|
||||||
|
|
Loading…
Reference in New Issue