diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/ios/quiview.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/quiview.mm b/src/plugins/platforms/ios/quiview.mm index 29afae7176..8db36705c0 100644 --- a/src/plugins/platforms/ios/quiview.mm +++ b/src/plugins/platforms/ios/quiview.mm @@ -440,7 +440,8 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet") if (m_activeTouches.isEmpty()) return; - if (!static_cast<QUIWindow *>(self.window).sendingEvent) { + if ([self.window isKindOfClass:[QUIWindow class]] && + !static_cast<QUIWindow *>(self.window).sendingEvent) { // The event is likely delivered as part of delayed touch delivery, via // _UIGestureEnvironmentSortAndSendDelayedTouches, due to one of the two // _UISystemGestureGateGestureRecognizer instances on the top level window |