commit | 128eab19fbb226cdd79acb010a79100ed49fd162 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Thu May 23 10:25:59 2019 +0800 |
committer | Siarhei Vishniakou <svv@google.com> | Thu May 23 10:38:59 2019 +0800 |
tree | a195ae761b34604392eaa5f009d480ab5481c656 | |
parent | c0c0fd95ea15f3370e05306ec0854ff54b486eff [diff] |
Clear events when ACTION_CANCEL is present When ACTION_CANCEL is present in the queue, we can clear the existing events from the queue. This will also help pilfer pointers, because this will allow extra time for the inputMonitor to pilfer pointers and prevent unwanted behaviour. Bug: 130352502 Test: open maps, then swipe from left or right. Observe that the map does not shift in response to this gesture. Change-Id: I6b3798f73da3dd26369d1d7887e24fde61333c31