Output a warning message and clear
QQuickWindowPrivate::itemForTouchPointId should unreleased touch points
exist when QEvent::TouchEnd is received.
Task-number: QTBUG-45856
Change-Id: I8a05220e4258c0ca401f79a2c32ec4f1d43fa444
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
}
if (event->type() == QEvent::TouchEnd) {
- Q_ASSERT(itemForTouchPointId.isEmpty());
+ if (!itemForTouchPointId.isEmpty()) {
+ qWarning() << "No release received for" << itemForTouchPointId.size()
+ << "touch points over" << itemForTouchPointId.begin().value()
+ << "on touch end.";
+ itemForTouchPointId.clear();
+ }
}
--touchRecursionGuard;