ethanselzer / react-cursor-position

A React component that decorates its children with mouse and touch coordinates relative to itself.
https://ethanselzer.github.io/react-cursor-position
MIT License
143 stars 35 forks source link

Question #38

Open DalvirBSingh opened 3 years ago

DalvirBSingh commented 3 years ago

No issue, but I'm just wondering how to log when a user clicks the mouse pad at the current cursor position. So for instance, a person moves the cursor then clicks somewhere. I expected the state of the component to change isTouch, but through all the documentation and examples I have gone through, the value never changes. image -Referring to isTouch state prop, what makes it change?

Or will wrapping around this component allow the functionality I seek

image