use Sticky Mode
A custom modifier function that enables "sticky mode" for a given view or composable. Sticky mode allows interactive gestures such as touch events to be handled by the StickyItemController
.
Return
The modified modifier, either with or without touch event handling based on the isEnabled
flag.
Parameters
controller
The controller responsible for handling touch events for sticky items.
is Enabled
A flag indicating whether sticky mode is enabled. Defaults to true
.