mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 20:57:24 +01:00
VerticalFastScroller: Fix scroller consuming touch when it's invisible (#7484)
This commit is contained in:
parent
da7a64b40d
commit
9385b86ecb
@ -121,11 +121,10 @@ fun VerticalFastScroller(
|
||||
.offset { IntOffset(0, thumbOffsetY.roundToInt()) }
|
||||
.then(
|
||||
// Recompose opts
|
||||
if (!listState.isScrollInProgress) {
|
||||
if (isThumbVisible && !listState.isScrollInProgress) {
|
||||
Modifier.draggable(
|
||||
interactionSource = dragInteractionSource,
|
||||
orientation = Orientation.Vertical,
|
||||
enabled = isThumbVisible,
|
||||
state = rememberDraggableState { delta ->
|
||||
val newOffsetY = thumbOffsetY + delta
|
||||
thumbOffsetY = newOffsetY.coerceIn(thumbTopPadding, thumbTopPadding + trackHeightPx)
|
||||
|
Loading…
Reference in New Issue
Block a user