Skip to content

Fix: clicking a wolf on the canvas opens its inspector - #15

Merged
tobilobacodes00 merged 1 commit into
mainfrom
tobiloba/engine-spine
Jul 18, 2026
Merged

tobilobacodes00 merged 1 commit into
mainfrom
tobiloba/engine-spine

Conversation

@tobilobacodes00

Copy link
Copy Markdown
Owner

elementsSelectable=false made React Flow set pointer-events:none on the nodes, so the per-node onClick never fired. Now handled via React Flow's onNodeClick with nodes selectable; the default selection outline is hidden (our halo marks the inspected wolf). Verified live in a real browser — clicking a wolf opens the inspector.

elementsSelectable=false made React Flow set pointer-events:none on the nodes, so
the per-node onClick never fired. Handle it through React Flow's onNodeClick with
nodes selectable; hide RF's default selection outline (our halo marks the inspected
wolf); mark only live wolves selectable. Verified live in a browser.
@tobilobacodes00
tobilobacodes00 force-pushed the tobiloba/engine-spine branch from 44f487a to 3fc127b Compare July 18, 2026 13:10
@tobilobacodes00
tobilobacodes00 merged commit 52c5bfa into main Jul 18, 2026
2 checks passed
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.

1 participant