wbotelhos / raty

:star2: Raty - A Star Rating Plugin
https://wbotelhos.com
MIT License
2.35k stars 651 forks source link

Problem with hover and half star #211

Open ghost opened 6 years ago

ghost commented 6 years ago

There is a bug when half option is true. When user hovers the second half of the star (for the example fifth star) and clicks, if the rating is > 4.5 user will see rating of 4 which is not correct, it must be 5, because the two halves of fifth star are hovered and user suggests that this is rating of 5. I tried with round option, but even if I do this: round : { down: .1, up: .51 }, the bug still exists if the clicked score is 4.5703125, user needs to click minimum 4.6, which is not correct. If star or half star is hovered, then on click this must be the rating.

tfantina commented 6 years ago

I can't seem to duplicate this issue.

vydyas commented 2 years ago

I can work on this issue as part of hacktoberfest.