Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onRatingUpdate not always called when fast dragging #76

Open
mattia-venturini opened this issue Nov 4, 2021 · 2 comments
Open

onRatingUpdate not always called when fast dragging #76

mattia-venturini opened this issue Nov 4, 2021 · 2 comments

Comments

@mattia-venturini
Copy link

I have a RatingBar with updateOnDrag: true and the onRatingUpdate callback set to update my app's state.

When dragging fast I see that onRatingUpdate is not called with the latest value, so that I get a value that is different from the one displayed by the stars.

NOTE: I would have tried a workaround looking at the State, but I would need a public getter to access _rating

@adarshwebcastle
Copy link

Same issue for me, Any update?

@peterweb2005
Copy link

in _onDragUpdate(),
as iconRating is normally determined in build methods
so the call to onRatingUpdate() shouldnt be arg with iconRating, but _rating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants