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

Expose full state on deactivation #34

Open ragalie opened 4 years ago

ragalie commented 4 years ago

Everything in the state should be accurate, regardless of whether it's active. It's useful to have the shape of the object sent to the onPositionChanged callback be the same regardless of activation.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 5d769b57ee6b02eb6f6d5d409521660f1e2d87a9 on ragalie:expose-state-on-deactivation into 0f594bb6f08e774c68ef131d883ece1a55823ad0 on ethanselzer:master.