Merge "Fix issues catching up to touch events after a short pause." into klp-dev
This commit is contained in:
@@ -1699,7 +1699,7 @@ bool InputDispatcher::isWindowReadyForMoreInputLocked(nsecs_t currentTime,
|
|||||||
// up with lots of events because the application is not responding.
|
// up with lots of events because the application is not responding.
|
||||||
// This condition ensures that ANRs are detected reliably.
|
// This condition ensures that ANRs are detected reliably.
|
||||||
if (!connection->waitQueue.isEmpty()
|
if (!connection->waitQueue.isEmpty()
|
||||||
&& currentTime >= connection->waitQueue.head->eventEntry->eventTime
|
&& currentTime >= connection->waitQueue.head->deliveryTime
|
||||||
+ STREAM_AHEAD_EVENT_TIMEOUT) {
|
+ STREAM_AHEAD_EVENT_TIMEOUT) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user