public object OneHandedGestureDefaults
Functions
scrollDown
public suspend fun scrollDown(scrollState: TransformingLazyColumnState)
A scroll implementation tailored for use with TransformingLazyColumnState.
This logic handles one-handed gesture by first attempting to scroll to the next item in the list (or scrolling through the current item if it exceeds the viewport size). If the list cannot scroll further forward, it scrolls back to the start.
Sample demonstrating gesture handling with TransformingLazyColumnState:
Parameters
| scrollState | The scroll state associated with a transforming lazy column. |
scrollToNextPage
public suspend fun scrollToNextPage(pagerState: PagerState)
Automatically animates the pagerState to the next available page.
This function triggers a smooth scroll transition to the next page index. If the current page is the last page in the pager, the animation will wrap around to the first page (index 0).
Samples demonstrating gesture handling with horizontal and vertical pagers:
Parameters
| pagerState | The state of the pager to be animated. |