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

Codemirror scrolls to the top when switching between dark and light mode #973

Open
loiswells97 opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@loiswells97
Copy link
Contributor

loiswells97 commented Mar 14, 2024

When the theme changes, codemirror re-renders and scrolls to the top. One approach could be to capture the scroll position before codemirror re-renders and then programmatically scroll back there once the theme has changed.

@loiswells97 loiswells97 added the bug Something isn't working label Mar 14, 2024
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

1 participant