diff options
| author | 2023-11-16 16:00:14 +0000 | |
|---|---|---|
| committer | 2023-11-16 16:44:44 +0000 | |
| commit | 1383da0cd4763091d33a74b200dde88eb878474a (patch) | |
| tree | e86e1d5f029c72f82217f873cc070a8e77b3d9ad /libs/input/SpriteController.cpp | |
| parent | 22daeee1fae2d38179af79299c54c85e86f8dbae (diff) | |
Reset `mShouldClick` on ACTION_CANCEL event so click is not performed
`mShouldClick` is set to true during ACTION_DOWN event. However if
this event is interrupted or cancelled `mShouldClick` remains true so the
click is performed when the ACTION_CANCEL case is caught. Instead we
should rest `mShouldClick` to false if a motion even occurs and is
interrupted. So the click is only performed due to an ACTION_UP event.
Fix: 296921322
Test: manual
Change-Id: I9cac00ad39f1ef589eee116480d293feff4d2a11
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions