mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-30 20:12:17 +03:00
VerticalFastScroller: Fix scroller consuming touch when it's invisible (#7484)
This commit is contained in:
parent
da7a64b40d
commit
9385b86ecb
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue