@@ -28,8 +28,10 @@ void TouchEventSequenceWrapper::commit(bool processEvents)
29 m_eventSequence.commit(processEvents);
29 m_eventSequence.commit(processEvents);
30#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
30#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
31+ if (m_item->window()) {
31− QQuickWindowPrivate *wp = QQuickWindowPrivate::get(m_item->window());
32+ QQuickWindowPrivate *wp = QQuickWindowPrivate::get(m_item->window());
32− wp->flushDelayedTouchEvent();
33+ wp->flushDelayedTouchEvent();