diff options
| author | 2023-10-27 16:30:44 +0200 | |
|---|---|---|
| committer | 2023-10-30 14:01:50 +0100 | |
| commit | de94ac9d388bf82656cf0c5ecd6e0b1cec893c11 (patch) | |
| tree | 1aed6523b352bf57be82df886f4856ab4df8ad17 /libs/androidfw/ZipFileRO.cpp | |
| parent | 247efa912a88a15de721e74592a60b6767f6b0c9 (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