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

Add support to change pressDurationInMs on the fly #27

Open danielfmoreira opened 5 years ago

danielfmoreira commented 5 years ago

Hi, would it be possible to change pressDurationInMs after constructing the component? I need to change it from the default 500 to 1 when a certain condition is met.