mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	VerticalFastScroller: Fix scroller consuming touch when it's invisible (#7484)
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user