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

Side-by-Side Mode Scroll Issue with Long Texts #554

Open
shinohara-f opened this issue Aug 3, 2023 · 3 comments
Open

Side-by-Side Mode Scroll Issue with Long Texts #554

shinohara-f opened this issue Aug 3, 2023 · 3 comments
Labels

Comments

@shinohara-f
Copy link

Describe the bug
When using EasyMDE in side-by-side mode with a large body of text (over 1000 lines), the scroll position does not match between the two panes initially. However, once scrolled all the way to the bottom, the scrolling synchronization starts to function correctly.

To Reproduce

  • Input more than 1000 lines of text into EasyMDE.
  • Switch to side-by-side mode.
  • Scroll the panes without reaching the bottom. Notice the scrolling position mismatch.
  • Scroll all the way to the bottom and then scroll up and down. The scrolling position should now be synchronized.

Expected behavior
The scrolling position should be synchronized between the two panes in side-by-side mode, regardless of the length of the text or the initial scroll position.

Screenshots
screenshot 2023-08-04 6 39 35

Version information

OS: macOS 13.3.1 (a)
Browser: Chrome 115.0.5790.114
EasyMDE version: 2.18.0

Additional context
This issue makes navigating through large documents inconvenient and disorienting, and I'm hoping it can be addressed. This mismatch in scroll position is only corrected after scrolling all the way to the bottom.

@shinohara-f shinohara-f added the Bug label Aug 3, 2023
@Ionaru
Copy link
Owner

Ionaru commented Aug 6, 2023

Thank you for the report! I'll have a look at it.

@shinohara-f
Copy link
Author

@Ionaru

Hello! I was wondering if there has been any progress on this bug.
If you're already working on a fix, that's great—I'll leave it to you.

However, if you haven't had the time to look into it yet, I'd be willing to help out if I can.
I should note that I have absolutely no knowledge of this library's code, so any pointers or ideas you could provide would be extremely helpful.

Thank you.

@Ionaru
Copy link
Owner

Ionaru commented Sep 22, 2023

Hello!

I haven't had the chance to look at this issue in-depth yet, my apologies.

As far as I'm aware, the editor code relies on CodeMirror to handle scrolling, but I could be mistaken.

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

No branches or pull requests

2 participants