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

Right click causes canvas to stick to mouse (Google Chrome v83) #183

Open eprice122 opened 4 years ago

eprice122 commented 4 years ago

Reproduce with any storybook using Chrome. Right click on the canvas, click out of the right click menu and the canvas will stick to the mouse. Bug present in Chrome v83 but not in Firefox 77.

basyusuf commented 4 years ago

For now, you can turn off the right click. componentDidMount() { document.addEventListener('contextmenu', (e)=>e.preventDefault()); }