Do not mark non-existent touch points as stationary
Make sure touches that were already released on an earlier SYN_REPORT are not re-marked as TouchPointStationary. This change has no effect on type A event processing since there the contact state is never zeroed. Change-Id: I2d4d705d2b3fae424b6245a75d4015dc2d86ad35 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
This commit is contained in:
parent
e812358ba8
commit
06ecd74db1
@ -554,6 +554,10 @@ void QEvdevTouchScreenData::processInputEvent(input_event *data)
|
||||
while (it.hasNext()) {
|
||||
it.next();
|
||||
Contact &contact(it.value());
|
||||
|
||||
if (!contact.state)
|
||||
continue;
|
||||
|
||||
if (contact.state == Qt::TouchPointReleased) {
|
||||
if (m_typeB)
|
||||
contact.state = static_cast<Qt::TouchPointState>(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user