diff options
| author | 2024-08-13 16:39:13 +0000 | |
|---|---|---|
| committer | 2024-08-14 20:54:37 +0000 | |
| commit | 47f03223fe34dcd4b03d55e0e41465bb62d5665f (patch) | |
| tree | 4ef016de624a3dbb14874a738ebe58491d40f884 /libs/input/PointerController.cpp | |
| parent | 44488a440f18db6e5e82eafeda08b079e0165e85 (diff) | |
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
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions