Fixing case where events aren't forwarded

This commit is contained in:
Chase Carroll 2022-12-07 07:19:48 -05:00
parent 6f09034668
commit 08ec662e22
1 changed files with 2 additions and 3 deletions

View File

@ -115,10 +115,9 @@ public final class TouchesVisibleWindow: UIWindow {
touchViews[touch] = touchView
case .moved:
guard let touchView = touchViews[touch] else {
return
if let touchView = touchViews[touch] {
touchView.center = touchLocation
}
touchView.center = touchLocation
case .ended, .cancelled:
cleanupTouch(touch)