diff options
| author | 2021-04-21 13:47:42 -0700 | |
|---|---|---|
| committer | 2021-04-23 12:18:55 -0700 | |
| commit | 93a0f91b555bc3e914885bbfc4e86211e97bfa33 (patch) | |
| tree | 66a013da917a6a506b9997ddd502badcfb83486c /libs/gui/SurfaceComposerClient.cpp | |
| parent | 6a9a83129025758ce6438197f402e3b56a115dfc (diff) | |
Cancel touchscreen gestures from Dispatcher when display rotates
When the display rotates, previously, touchscreen devices were reset,
and a notifyDeviceReset is sent to Displatcher. When that happens,
Dispatcher cancells all active gestures from that device.
With this CL, we skip a device reset when the display rotates because
there is nothing that changes for the touchscreen device. Instead, when
we get a new set of input windows from SF in dispatcher, we track if the
orientation changes, and if it does, issue a cancellation for all
pointer events.
Bug: 185943742
Test: manual
Change-Id: Ic8ff19c0dc9cca7b1053a137ea041e5a0da82a76
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions