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 UI - Scroll events are not smooth #481
Comments
I've been reading about throttle and I think this might be our solution. I'll have a play see what outcomes I get. |
@skattyadz John showed me your PoC for scrolling looked f'in epic. How far from ready is it? Do want! 🍰 |
It needs a little work, but is basically there. Will submit a PR with details later |
Fixes TryGhost#481 Fixes TryGhost#535 Currently we sync these two panes by working out how many % the user is down the left pane, and extending that ratio to the right side. This is good enough for text, but in long posts, or those with elements like images it can go askew. These changes split both the markdown and the preview into sections (divided by headings). It determines that the user is X percent through section Y, and then applies that same scroll to the other pane.
Interim solution found - pushing the proper solution exploration to 0.4 |
This is as good as it's going to get for current editor - and partially fixed by iframe/script placeholders rather than live embeds. |
Closed as wontfix against #1294 |
From #22:
John:
Matt:
I think we possibly need to switch to throttle, or take the debounce/throttling off entirely if performance is better that way.
The text was updated successfully, but these errors were encountered: