Skip to content

Commit

Permalink
fix: gesture change
Browse files Browse the repository at this point in the history
  • Loading branch information
gowtham.balamurugan committed Oct 27, 2023
1 parent 24bc193 commit 3319b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ratingbar/src/main/java/com/gowtham/ratingbar/RatingBar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ internal fun RatingBar(
Row(modifier = modifier
.onSizeChanged { rowSize = it.toSize() }
.pointerInput(
Unit
onValueChange
) {
//handling dragging events
detectHorizontalDragGestures(
Expand Down Expand Up @@ -137,7 +137,7 @@ internal fun RatingBar(
}
)
}
.pointerInput(Unit) {
.pointerInput(onValueChange) {
//handling when click events
detectTapGestures(onTap = {
if (isIndicator || hideInactiveStars)
Expand Down

0 comments on commit 3319b76

Please sign in to comment.