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

Editor auto go back to the top #9

Closed
yzy1996 opened this issue Mar 27, 2021 · 4 comments
Closed

Editor auto go back to the top #9

yzy1996 opened this issue Mar 27, 2021 · 4 comments

Comments

@yzy1996
Copy link

yzy1996 commented Mar 27, 2021

When I type in the bottom of .mmd file, it will auto go back to the top of the interface.

I wonder it's a bug or the own problem of mine.

@montanaflynn
Copy link
Contributor

Hi @yzy1996, I couldn't reproduce this exactly although I did find a similar problem where the editing side of the preview scrolled up partially when editing the bottom. This is happening because the preview is shorter than the content and it tries to keep the side by side. Thanks for reporting this, we'll look into possible solutions.

When you were editing the bottom of the file would the editor or preview side go back to to the very top?

@OlgaRedozubova
Copy link
Contributor

@yzy1996 Do you have long lines in your .mmd file?

When using very long strings vscode does not sync edit and preview scrolling.
The issue in vscode
microsoft/vscode#119578

ezgif com-gif-maker (1)

@montanaflynn
Copy link
Contributor

@yzy1996 as a temporary fix I found turning off the following VS code setting fixes the problem while still keeping the preview scrolled to the editor:

Screen Shot 2021-03-30 at 17 56 33

You can disable it from the vscode settings page: https://code.visualstudio.com/docs/getstarted/settings

@yzy1996
Copy link
Author

yzy1996 commented Mar 31, 2021

Thanks for the quick response! I really love this project. Thank you guys again!

@montanaflynn This scroll setting does fix my problem. This exactly happens when I type many multi-line block mode mathematics, so it wants to sync the editor scrolled to the preview.

That's a couple of settings, you can also turn off 'Scroll Preview With Editor'.

@OlgaRedozubova Thanks but I did not have long lines.

@yzy1996 yzy1996 closed this as completed Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants