You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues before opening a new one.
Description
When moving a parent block to connect to a compatible input block, sometimes it doesn't connect (and the input block gets moved away).
Reproduction steps
Move parent block to input block.
The input block isn't connected and gets instead "pushed away"
On https://developers.google.com/blockly I've seen this behavior when the parent block is not the top dragged block (cf screenshot)
The first one is that connections on blocks other than the parent block aren't available for connection during a drag. (The exception is the last next connection on a stack of blocks.)
That behaviour is intentional. Imagine a stack of set count to blocks, all of which had empty inputs. If you dragged it toward a math block you would have a lot of valid connections that are very close to each other, resulting in blocks bouncing around as insertion markers appear and disappear and the dragged block resizes. Sticking to only connections on the top block being dragged helps avoid that case.
The second issue is that you can't drag a parent block with a shadow toward a child block and have them connect. This is also intentional. If we did it the other way, you could accidentally connect a parent to an existing block, which would wipe out a shadow. In general, the user has to drag the child block to the parent connection if there's any ambiguity about what connection to make.
The third issue is the block chasing that you show in your second recording. I'm going to split that into a separate issue to look at more.
Check for duplicates
Description
When moving a parent block to connect to a compatible input block, sometimes it doesn't connect (and the input block gets moved away).
Reproduction steps
On https://developers.google.com/blockly I've seen this behavior when the parent block is not the top dragged block (cf screenshot)
On https://google.github.io/blockly-samples/plugins/shadow-block-converter/test/ we can see that the connection is not done when the parent block already has a shadow block
And on SuperCodingBall, I had to "chase" the input block (cf screenshot)
Stack trace
No response
Screenshots
input.blocks.mov
block.chasing.mov
Browsers
Chrome desktop
The text was updated successfully, but these errors were encountered: