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

Bugs with text magnets #193

Open
osankur opened this issue Oct 13, 2021 · 9 comments
Open

Bugs with text magnets #193

osankur opened this issue Oct 13, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@osankur
Copy link

osankur commented Oct 13, 2021

Sometimes, when I type in a latex formula, say, $x=2$, and hit ESC, it does not render any latex equation; but the text remains $x=2$. On the same occurrence, by focusing on the magnet and hitting DEL, I wasn't able to delete it. I was able to move that magnet but not delete it.

@francoisschwarzentruber francoisschwarzentruber added the bug Something isn't working label Oct 15, 2021
@philip-bl
Copy link

I have figured out that typing a formula, say $x=2$, putting the cursor anywhere in the text field, then pressing enter backspace esc always works.

@francoisschwarzentruber
Copy link
Contributor

francoisschwarzentruber commented Oct 25, 2021

Dear all, thank you for your comments. I am unable to reproduce this bug. Maybe it depends on the browser? Maybe it depends on something else? I usually use Firefox, but I was also unable to reproduce the bug on Chrome.

@philip-bl
Copy link

Here's a screencast showing the bug. https://drive.google.com/file/d/1uiA4NXlkBsThesmnt7rjKVwzt4IKv_Wo/view?usp=sharing For some reason, this time it was difficult to reproduce it, I only got it on like 6th try with the formula $3-3$.

@philip-bl
Copy link

And another screencast https://drive.google.com/file/d/18yyNKSOJalC7a4fxkDvJtWZAm7HuSa0f/view?usp=sharing. Sorry, I don't know how to reproduce the bug in a stable way.

@philip-bl
Copy link

Wait, I think I know. It seems to happen every time when there is a space in the formula.

@francoisschwarzentruber
Copy link
Contributor

Thank you @philip-bl!
I have the same bug!

@francoisschwarzentruber
Copy link
Contributor

This particular bug with the "space" only occurs on FIrefox! Not in Chrome!

@francoisschwarzentruber
Copy link
Contributor

Congratulation @philip-bl for having found an explanation to that bug!

@francoisschwarzentruber
Copy link
Contributor

Now concerning the deletion of LaTEX magnet, I think it is related to the fact that the inner MathJAX content takes the focus, instead of the magnet itself. It is related I think to the issue mathjax/MathJax#1423

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

3 participants