summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJackal Guo <jackalguo@google.com>2019-03-29 17:08:39 +0800
committerJackal Guo <jackalguo@google.com>2019-04-11 02:50:01 +0000
commit5ed20a7782be8c1f38053a1a3c2b41fae07d9c2c (patch)
treeed86ef76834e53eabc09516f8e2641e31d4214a1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1fbf66bbf48268b6d1b44c1028cf1872b1fa68bf (diff)
Don't cancel injected event when mouse event arrives
Currently, MotionEventInjector would cancel any injected gesture when any MotionEvent arrives. For user using an external device to control the pointer movement, it's almost impossible to perform the gestures. Any slightly unintended movement results in the cancellation of the gesture. However, if MotionEventInjector keeps sending mouse movement events when gesture is performing, dispatch logic would be confused and it causes the gesture malfunction. Therefore, ignore movement events from mouse when there is an ongoing gesture since click event from mouse should be intended. Bug: 116459737 Test: add a new test case in MotionEventInjectorTest Test: a11y CTS & unit tests Change-Id: I2c2be8cf565ba15d1a9cd6bc8c45b695c1309b56 Merged-In: I2c2be8cf565ba15d1a9cd6bc8c45b695c1309b56
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions