diff options
| author | 2024-06-13 13:50:55 +0000 | |
|---|---|---|
| committer | 2024-06-18 10:01:41 +0000 | |
| commit | 9a42e828b01f90d84c5a99daf89bd71b955621f6 (patch) | |
| tree | 0a42555c8b88f1139892e3e3c1c531e74836dd6d /libs/androidfw/StringPool.cpp | |
| parent | 6d28c9007ed4efecefc36629e0cd5435fdf3ab5c (diff) | |
Expose startedPosition and pointersDown to NestedScrollHandler
Until now, we have handled scrolls as gestures without a specific
starting position (using null) and have only considered one finger on
the screen.
Moving forward, we aim to accurately expose this information and we can
achieve this by leveraging the PointerInput API.
The NestedScrollToSceneNode now employs a PointerInputHandler to
determine the number of pointers and obtain the starting position during
the nested scroll.
The PointerInputHandler awaits the creation of the
AwaitPointerEventScope to register the nestedScrollHandler.
This approach ensures that touch events are always received by the
PointerInputHandler first, in the Initial step, and later these events
are consumed by our descendant scrollable in the Main step.
Test: atest ElementTest
Bug: 330200163
Flag: com.android.systemui.scene_container
Change-Id: Ib912aec5af40145af7a0d580aa81b3098d0ad092
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions