summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2023-10-27 16:30:44 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2023-10-30 14:01:50 +0100
commitde94ac9d388bf82656cf0c5ecd6e0b1cec893c11 (patch)
tree1aed6523b352bf57be82df886f4856ab4df8ad17 /libs/androidfw/ZipFileRO.cpp
parent247efa912a88a15de721e74592a60b6767f6b0c9 (diff)
Add support for swipe with multiple fingers
This CL replaces the usage of Modifier.draggable by a custom Modifier.pointerInput that returns the number of pointers down to DraggableHandler.onDragStarted when a drag starts. The current logic is pretty simple and mostly forked from Draggable.kt and DragGestureDetector.kt: we still wait for the *first* pointer down to reach the touch slop, then we count the number of distinct pointers that are down/pressed. In the future, we might want to make the implementation more complex and wait for any pointer down to reach the touch slop, instead of just the first one. Bug: 291055080 Test: SwipeToSceneTest Change-Id: Ifdb3f118b6765a8b6d07b3b4fe0edd78273b33c2
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions