From 3319b761efd04a849eef7cacd8dd6e4c9865bc50 Mon Sep 17 00:00:00 2001 From: "gowtham.balamurugan" Date: Fri, 27 Oct 2023 12:35:20 +0530 Subject: [PATCH] fix: gesture change --- ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt b/ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt index cc7c87e..a3f4e37 100644 --- a/ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt +++ b/ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt @@ -101,7 +101,7 @@ internal fun RatingBar( Row(modifier = modifier .onSizeChanged { rowSize = it.toSize() } .pointerInput( - Unit + onValueChange ) { //handling dragging events detectHorizontalDragGestures( @@ -137,7 +137,7 @@ internal fun RatingBar( } ) } - .pointerInput(Unit) { + .pointerInput(onValueChange) { //handling when click events detectTapGestures(onTap = { if (isIndicator || hideInactiveStars)