Skip to content

Commit

Permalink
Merge pull request #40 from a914-gowtham/fix/gesture
Browse files Browse the repository at this point in the history
fix: gesture change
  • Loading branch information
a914-gowtham authored Oct 27, 2023
2 parents 24bc193 + 3319b76 commit 7682b49
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 7682b49

Please sign in to comment.