summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2023-10-18 14:51:24 +0000
committer omarmt <omarmt@google.com> 2023-10-24 09:46:22 +0000
commite0b825dd64b7f38138c4d6d657abdca635e3646e (patch)
treea01d8e9b154ff8acff04fc48e9a50df9b9fa0071 /libs/input/SpriteController.cpp
parent20f85cbadd597a513bb4323b871a684a2433573d (diff)
Support for multiple gestures at once
To ensure that there is only one source in control of the scene at a time (using the takePriority method). In this case, the drag and stop methods called by other sources will be ignored. For example, this could happen when using the draggable modifier (with startDragImmediately set to true) and nestedScroll. In this case, the sequence of events received by our SceneGestureHandler is as follows: - draggable: start - draggable: drag - nestedScroll: start - nestedScroll: drag - draggable: stop // <-- this event should be ignored - nestedScroll: drag - nestedScroll: drag - nestedScroll: drag - ... - nestedScroll: stop Test: atest SceneGestureHandlerTest Bug: 291025415 Change-Id: I74fdc27e6b7786cd425254f84df07615afa4e6a1
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions