Closed dagjaneiro closed 5 years ago
Very nice! I'll get around to testing this sometime early next week hopefully.
With regards to this feature, it works nicely except for one case:
The result here is that the left is at the top, but the right gets stuck somewhere along the way.
I was able to replicate what you're reporting, it almost looks like it loses some events when the user scrolls really fast. I'll see what I can do.
This PR adds support for synced scroll between the editor and preview pane.
It uses the ratio between the height of both viewports as a heuristic to keep them in sync.
Here's an example of it in action:
Closes standardnotes/bounties#22