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

Skip to content
Commit 47f03223 authored by omarmt's avatar omarmt
Browse files

STL: Reset PriorityNestedScrollConnection on first pointer down

Context: ag/28322124 moved the DraggableHandler from
NestedScrollToSceneNode to SwipeToSceneNode.

During this move, we overlooked the possibility of a scrollable
component unexpectedly disappearing from the composition, resulting in
the loss of some events.
The most important is "pointer up", which triggers the "onPreFling()"
call, serving as a signal to reset the tracking of the scroll consumed
by the SceneTransitionLayout children.

This could cause a flickering effect because specific
transitions might not be terminated at the appropriate time.

In this CL, we introduce a new approach to reset the tracking.
When the first pointer is detected on the screen, the tracker of the
scroll already consumed is reset.

Test: atest NestedScrollToSceneTest
Bug: 336710600
Flag: com.android.systemui.scene_container
Change-Id: If91d86531839cf16778b7818acfe8c9192ef0fa0
parent 44488a44
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