cubing.js
cubing.js copied to clipboard
Disconnect 3D puzzles from listeners as soon as the player puzzle changes.
To Reproduce Steps to reproduce the behavior:
- Go to https://alpha.twizzle.net/explore/?alg=%28U+F+R+D+B+L%29&puzzle=30x30x30
- Change the puzzle to
40x40x40lgarr
The 30x30x30 puzzle flashes a significantly more scrambled state, probably from reading a 40x40x40 state.

Expected behavior The puzzle changes immediately, or at least doesn't show an inconsistent state.
I think this disconnection isn't doing its job: https://github.com/cubing/cubing.js/blob/f856f0fba82c53d60182c98484a661ea59d74cf7/src/cubing/twisty/views/3D/Twisty3DSceneWrapper.ts#L176