You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fundamentally, this lib is currently wired for a mouse: on a touch device, there's no position in state at the time that a click/tap event registers, so there's no rating available to be persisted by the clickHandler.
The only way to make it work on a touch-oriented device is to do something that has the effect of moving all the functionality of handleMouseMove into handleClick, so that the positioning calculations are performed based on the click position, and then processed in a single turn of setState along with the setState for the star ratings...
The text was updated successfully, but these errors were encountered:
There were some other issues related to that. I've migrated some of an older PR that should resolve the issue. Would you mind checking out the touch-events branch and testing with that?
Fundamentally, this lib is currently wired for a mouse: on a touch device, there's no position in state at the time that a click/tap event registers, so there's no rating available to be persisted by the clickHandler.
The only way to make it work on a touch-oriented device is to do something that has the effect of moving all the functionality of
handleMouseMove
intohandleClick
, so that the positioning calculations are performed based on the click position, and then processed in a single turn ofsetState
along with thesetState
for the star ratings...The text was updated successfully, but these errors were encountered: