From 08ec662e221f9330ea6cd0c0abdcd37f71a53eea Mon Sep 17 00:00:00 2001 From: Chase Carroll Date: Wed, 7 Dec 2022 07:19:48 -0500 Subject: [PATCH] Fixing case where events aren't forwarded --- .../MastodonUI/View/Window/TouchesVisibleWindow.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Window/TouchesVisibleWindow.swift b/MastodonSDK/Sources/MastodonUI/View/Window/TouchesVisibleWindow.swift index 6eb7a4feb..79888220b 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Window/TouchesVisibleWindow.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Window/TouchesVisibleWindow.swift @@ -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)