joshjg / react-canvas-knob

Flexible knob/dial input component
MIT License
44 stars 28 forks source link

Distinguish between dragging and dragEnd #5

Closed oyeanuj closed 7 years ago

oyeanuj commented 7 years ago

Hi @joshjg! I was wondering if it is possible to expose events that distinguish between dragging and end of dragging? This could be done by exposing onChangeComplete for the latter and onChange works for the former or by exposing two new events to indicate the two different events.

I was planning to use this for volume and progress controls for a media player. And for that, I needed to know when the dragging has stopped and use that value.

Thank you!