MrBlenny / react-flow-chart

🌊 A flexible, stateless, declarative flow chart library for react.
https://mrblenny.github.io/react-flow-chart/index.html
MIT License
1.48k stars 306 forks source link

Do not reset isDragging until the next mousedown. #132

Closed crsven closed 4 years ago

crsven commented 4 years ago

isDragging is meant to signify that the last action was a drag, so we should not send a click event. It should only be reset in isStart when the next action is started.

Fixes #131

Before

flow-chart-broken

After

flow-chart-fixed