React-diagrams: Any way to deactivate selection? / Selection event bug

Created on 30 Jun 2020  路  3Comments  路  Source: projectstorm/react-diagrams

First of all thanks for the library

We're building an app and we had to put some mouseDown and mouseUp handlers on the container wrapping the CanvasWidget for various reasons, but doing so breaks the selection in the library the instant you try to make a selection. I haven't fully figured out why yet, i'm guessing it has something to do with event propagation but i'm still looking into it

but anyway my main point is that we don't really need selection for our use case, so I was wondering if there was a way to turn it off? The only workaround I could find for now is to forcefully remove the state associated to selections from the childStates array in the diagramStateEngine

i'm attaching the errors we're getting when trying to handle onMouseDown on the parent container and selecting using shift for the sake of documentation

image
image

answered question

All 3 comments

I appreciate the suggestion, that is probably one way to do it indeed

@renato-bohler I couldn't find an easy way to contact you (but I also didn't look very hard xD), just know that you are a Legend.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schecter22107 picture schecter22107  路  3Comments

CarlousF picture CarlousF  路  3Comments

DanieLazarLDAPPS picture DanieLazarLDAPPS  路  3Comments

ahsanbagwan picture ahsanbagwan  路  4Comments

jardg picture jardg  路  3Comments