iOS: Don't assume our UIWindow is a QUIWindow
Change-Id: I6494e4a476273b131aedcf409abdb1ffffa5b62e Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit ab9b026d2734321f1d5a06b79f97107a867687c3)
This commit is contained in:
parent
6b98d97670
commit
dc55000140
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user