summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2023-11-16 16:00:14 +0000
committer Eghosa Ewansiha-Vlachavas <eevlachavas@google.com> 2023-11-16 16:44:44 +0000
commit1383da0cd4763091d33a74b200dde88eb878474a (patch)
treee86e1d5f029c72f82217f873cc070a8e77b3d9ad /libs/input/SpriteController.cpp
parent22daeee1fae2d38179af79299c54c85e86f8dbae (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