Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8f453fe0 authored by omarmt's avatar omarmt
Browse files

Expose startedPosition and pointersDown to STL descendants, if available

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 in the
MultiPointerDraggableNode.

New behaviors:
- MultiPointerDraggableNode now is a PointersInfoOwner and tracks the
  pointers events.
- We can access to the nearest ancestor PointersInfoOwner by using
  findAncestorPointersInfoOwner().
- The NestedScrollToSceneNode can determine the number of pointers and
  obtain the starting position during the nested scroll.

Test: atest ElementTest
Test: Tested on Flexiglass, the scroll between scenes still works. This
will enable two finger gestures on scrollable components.
Bug: 330200163
Flag: com.android.systemui.scene_container

Change-Id: Idf43855e0ee094a9e726a77cfc9b411c7e844dff
parent 6988f849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment