Sometimes the magnets are not shown
Closed this issue · 0 comments
Initially when dragging a connection (remember: WiresConnection's are the head/tail circle of a WiresConnector) and moving over the green shape, the magnets for the shape are shown, so you can connect, that's fine.
But after dragging the shape and moving the connection over it, sometimes the magnets are not shown, so you cannot connect.
Addition Info from @romartin:
It's strange as when moving shape to the left some pixels, the right connection starts not working, if you move the shape to the right, the left connection broke... Looking at the code here, I think the "backingMap" is not well populated, probably it's only populating from the connection's coordinates into a single direction.
The idea on this code is that when you start the connection's drag, it "saves" all current canvas shapes into a bitmap (look at the BackingColorMapUtils.drawShapesToBacking) -> so while dragging he is able to know which shape is at the current mouse position by querying this map, in fact, I think he assign a color for a shape or something like that....