Skip to content

Conversation

@gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Aug 7, 2025

This PR fixes #674. The sorting of available connections is not stable, so in some cases traversing to the next/previous item could cut out available connections. Now, rather than finding and sorting the list of available connection points for every move action, the list is calculated once and stored for the duration of the drag/move event. This is both more efficient and means that the stability of the sort is immaterial, because it only happens once. With this change, navigating a block structure similar to that reported in the issue yields the same visitation order regardless of going forward/backward.

@gonfunko gonfunko requested a review from a team as a code owner August 7, 2025 18:10
@gonfunko gonfunko requested review from maribethb and removed request for a team August 7, 2025 18:10
@gonfunko gonfunko merged commit 10d7bba into main Aug 8, 2025
10 checks passed
@gonfunko gonfunko deleted the connection-loop branch August 8, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move mode loops are different for up&left vs down&right

3 participants