iOS: Don't assume our UIWindow is a QUIWindow
Change-Id: I6494e4a476273b131aedcf409abdb1ffffa5b62e Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
5b09346cf4
commit
ab9b026d27
@ -446,7 +446,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
|
||||
|
Loading…
Reference in New Issue
Block a user