Open milesflavel opened 11 months ago
@milesflavel Do you mind explaining why we need onTouchStart / onTouchEnd ? I'm fine with the other changes of this PR
@milesflavel Do you mind explaining why we need onTouchStart / onTouchEnd ? I'm fine with the other changes of this PR
I was running into situations where touch would result in the hovered
state being set true, but it would never set itself false again. By explicitly binding the onTouchStart
& onTouchEnd
events, it resolved this problem.
The issues were loosely described in https://github.com/pmndrs/react-three-a11y/issues/45
Partially resolves https://github.com/pmndrs/react-three-a11y/issues/45#issuecomment-1879572601