cubing.js icon indicating copy to clipboard operation
cubing.js copied to clipboard

Jump to the end of the alg when the selection cursor is moved to the end of a `<twisty-alg-editor>`

Open DougCube opened this issue 10 months ago • 4 comments

Steps to reproduce the issue

alg is (R U)^105 https://alpha.twizzle.net/edit/?alg=%28U+R%29105 There is no way to click in the Moves Box and have it show the end state, but "Skip to End" button works. So I think it's another move indexing bug.

Observed behaviour

no way to click in the Moves Box and have it show the end state

🖼 Screenshots

Image

Expected behaviour

expecting alg to show identitiy

Browser & operating system

Chrome 132.0.6834.111 on Windows 10 Pro

Additional info

No response

DougCube avatar Feb 18 '25 20:02 DougCube

But this case works fine in alg.cubing.net.

DougCube avatar Feb 18 '25 20:02 DougCube

This isn't really a bug per se, since it's the leaves and not the string that are indexed. That said, jumping to the end of the alg when you're at the end of the input sounds like a useful feature.

lgarron avatar Feb 19 '25 02:02 lgarron

Works perfectly fine in alg.cubing.net tho. https://alg.cubing.net/?alg=(R_U)105

DougCube avatar Feb 21 '25 06:02 DougCube

Works perfectly fine in alg.cubing.net tho. https://alg.cubing.net/?alg=(R_U)105

Yes, that is a completely independent implementation.

lgarron avatar Feb 21 '25 10:02 lgarron