8000 lastConnectionInRow cause unintuitive re-connection behavior · Issue #3658 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
lastConnectionInRow cause unintuitive re-connection behavior #3658
Open
@BeksOmega

Description

@BeksOmega

Describe the bug

This is actually a lot of little things that I think are weird about how lastConnectionInRow decides if the orphaned block should be reconnected.

This is how the logic works

  1. If any block in the chain has no matching connections, the block cannot reconnect.
    BadMiddleType

  2. If any block in the chain has multiple matching connections, the block cannot reconnect.
    NoConnectAtEnd
    NoConnectInside

  3. For 2 filled connections are still seen as available.
    FilledIgnored

But these cases work:
ConnectAtEnd
ConnectInside

To Reproduce

Steps to reproduce the behavior:

  1. You can replicate the above scenarios using the connection test blocks on the playground.

Expected behavior

I think behavior 3 should definitely be changed because it makes doing things like this inconvenient:
Math

The other behaviors still feel unintuitive, but I'm not sure what the most intuitive behavior would be.

Additional context

TODO link

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0