Hi, this is hopefully an easy one.
In my JGoView instance I have non-resizable nodes that consist of a a background JGoRectangle, JGoText boxes and to pretty straightforward subclasses of JGoPort acting as to and from connectors at the top and bottom. I’ve got everything displaying correctly, but I can’t get the behavior of my nodes themselves correct.
- Single mouse click selects the entire node (highlighted in green as appears to be default is fine).
- Click and drag moves the node. When the mouse button is released, the node should drop into it’s new location and be selected.
Number 1 is working. However, when I do a click and drag the object remains attached to my pointer, still dragging, regardless of whether I still have the mouse button down. I have to click a second time to drop it and then it does not appear to be selected.
I have another project where I’m getting the behavior I want, but I can’t figure out what the difference is. I’m hoping someone knows the property/properties I need to set to get the behavior I want.