We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b6a523 commit b5bb679Copy full SHA for b5bb679
core/src/commonMain/kotlin/ScrollArea.kt
@@ -355,17 +355,14 @@ fun ScrollbarScope.Thumb(
355
val isHovered by mutableInteractionSource.collectIsHoveredAsState()
356
val isDraggingList by scrollAreaState.interactionSource.collectIsDraggedAsState()
357
358
-
359
- LaunchedEffect(show) {
360
- if (show) {
361
- delay(thumbVisibility.hideDelay)
362
- show = false
363
- }
364
365
- LaunchedEffect(isDraggingList, isHovered) {
+ LaunchedEffect(show, isDraggingList, isHovered) {
366
if (isDraggingList || isHovered) {
367
show = true
368
}
+ if (show && !isHovered) {
+ delay(thumbVisibility.hideDelay)
+ show = false
+ }
369
370
LaunchedEffect(Unit) {
371
onScrolledEvents.collect {
0 commit comments