react-sigma
react-sigma copied to clipboard
How to disable the camera from moving on mousedown?
Hello,
Is there a way to programmatically disable the camera from moving when we click and move the canvas?
I'm writing a plugin similar to https://github.com/Yomguithereal/sigma-experiments/blob/master/selection-tool/index.js but for canvas 2d instead. I would like something like camera.disable()
Thanks
You could write custom component to get access to the sigma instance, which would allow you to perform any operation you can perform on sigma itself. There is example in the doc which should give idea https://github.com/dunnock/react-sigma#extending-sigma-components