|
|
@ -247,8 +247,10 @@ fun Scrollbar(
|
|
|
|
pressedOffset = offset
|
|
|
|
pressedOffset = offset
|
|
|
|
|
|
|
|
|
|
|
|
interactionSource?.tryEmit(
|
|
|
|
interactionSource?.tryEmit(
|
|
|
|
if (tryAwaitRelease()) PressInteraction.Release(initialPress)
|
|
|
|
when {
|
|
|
|
else PressInteraction.Cancel(initialPress),
|
|
|
|
tryAwaitRelease() -> PressInteraction.Release(initialPress)
|
|
|
|
|
|
|
|
else -> PressInteraction.Cancel(initialPress)
|
|
|
|
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// End the press
|
|
|
|
// End the press
|
|
|
|