cubing / cubing.js

🛠 A library for displaying and working with twisty puzzles. Also currently home to the code for Twizzle.
https://js.cubing.net/cubing/
GNU General Public License v3.0
232 stars 42 forks source link

[Twizzle issue] A bug about commutator display #234

Open nbwzx opened 1 year ago

nbwzx commented 1 year ago

Steps to reproduce the issue

  1. Go to https://alpha.twizzle.net/
  2. In the moves input, put [R,U].
  3. Besides, there will be extra orange spaces after expanding it.

Observed behaviour

The state of Rubik's cube is R U

Expected behaviour

The state of Rubik's cube should be R U R' U'

Browser & operating system

Chrome

🖼 Screenshots

alpha twizzle net_edit__alg=%5BR%2C+U%5D alpha twizzle net_edit__alg=%5BR%2C+U%5D (1)

Additional info

No response

lgarron commented 1 year ago

Thanks, this is a useful repro case! TwistyAlgEditor still needs a bit more work to keep the cursor and editor in sync, this is definitely one place.