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

Synchronize scrolling between the input textarea and the preview zone #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

silviubogan
Copy link

To synchronize the scroll position between the #wmd-input and #wmd-preview. I tested the changes rapidly and they seem to work well.

to synchronize the scroll position between the #wmd-input
and #wmd-preview, and update README.md file and help popup
@silviubogan silviubogan changed the title Use jquery.scrollSync.js jQuery plugin Synchronize scrolling between the input textarea and the preview zone Oct 23, 2017
(the previous commit keeps them synchronized after page load)
@josephernest
Copy link
Owner

Nice idea! Can you share a live demo link, so that we can try it? Thanks!

@silviubogan
Copy link
Author

@josephernest
Copy link
Owner

Interesting, it works most of the time, but not 100% reliable: try with a code containing a half-page comment:

<!-- Hello
     This is a long comment
     This is a long comment
     ...
 -->

or a many-lines matrix:

$$A = \begin{pmatrix}1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6\end{pmatrix} $$

Then the synchronisation is not always good. The fact we cannot turn it off could make the editing difficult in some cases. I suggest we experiment this a bit, a few weeks to see how it behaves on every day use. After a few weeks of use, we'll be able to tell if it's reliable.

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

Successfully merging this pull request may close these issues.

2 participants