Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire mode cursor breaks after connection is made #318

Open
cdriesler opened this issue Jun 26, 2023 · 0 comments
Open

Wire mode cursor breaks after connection is made #318

cdriesler opened this issue Jun 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working @nodepen/nodes

Comments

@cdriesler
Copy link
Member

Reproduction:

  • Start a wire connection from any port
  • Complete the wire connection anywhere
  • Move the cursor, while still over a port
  • Observe that cursor does not re-appear until you re-enter a port's capture area
  • Observe 🐍 errors in console explaining that it could not find a mode

Explanation:

Wire mode cursor drawing requires a "mode" to be set so we know which kind of connection icon to show (i.e. set, merge, remove). This information is cleared when a live wire is committed as a real wire, but the cursor is likely still over a port.

Likely fixable by not clearing the cursor information (maybe just mode?) on wire commit.

@cdriesler cdriesler added bug Something isn't working @nodepen/nodes labels Jun 26, 2023
@cdriesler cdriesler self-assigned this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @nodepen/nodes
Projects
Status: No status
Development

No branches or pull requests

1 participant