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

TwistyAlgViewer moves cursor around undermining user #184

Open
rokicki opened this issue Apr 11, 2022 · 1 comment
Open

TwistyAlgViewer moves cursor around undermining user #184

rokicki opened this issue Apr 11, 2022 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@rokicki
Copy link
Contributor

rokicki commented Apr 11, 2022

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://alpha.twizzle.net/explore
  2. Type or paste this algorithm: M2 U' M' U2 M U' M2'
  3. Move the cursor in the alg textarea to the end of the line.
  4. Hit carriage return (cursor now at end of next line).
  5. Hit up arrow (cursor now at beginning of first line).
  6. Type two forward slashes to comment out the alg.
  7. The cursor now is forced to the end of the first line.

Expected behavior
TwistyAlgViewer should never move the cursor in response to a typed
normal character.

I suspect this is happening as part of some sort of normalization of the
alg, as the "extra" carriage return at the end of the alg also disappears
as part of this. I want that extra carriage return to stay there.

Browser:
Chrome on MacOS.

@rokicki rokicki added the 🐞 bug Something isn't working label Apr 11, 2022
@lgarron
Copy link
Member

lgarron commented Apr 11, 2022

I presume you mean TwistyAlgEditor?

In general I need to still make a whole bunch of fixes, which are all really annoying due to async code interacting with sync code. I'll make sure this particular repro gets fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants