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

Keep current line in place when math un/renders #25

Open
cben opened this issue May 25, 2014 · 0 comments
Open

Keep current line in place when math un/renders #25

cben opened this issue May 25, 2014 · 0 comments

Comments

@cben
Copy link
Owner

cben commented May 25, 2014

If I have:

foo foo
$$\frac{very high}{formula}$$
bar bar

and I move from "foo foo" into the formula and back, "bar bar" (and the rest of the doc) jumps up and down. Fair enough.

But if I move from "bar bar" up into the formula and back down, I'd prefer "bar bar" to stay at the same height on my screen and for "foo foo" (and everything above it) to scroll correspondingly.

This is very subtle and low priority but would also help during the initial rendering pass.
In that use case where widgets are created but cursor didn't move, one could argue this should become the default CodeMirror behavior? Though there are patological cases when scrolling the first line of a document off-screen would be unexpected...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant