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

Browser event on domDiff updated node. #86

Open
zachleat opened this issue Aug 1, 2024 · 1 comment
Open

Browser event on domDiff updated node. #86

zachleat opened this issue Aug 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@zachleat
Copy link
Member

zachleat commented Aug 1, 2024

Would allow custom behavior to scroll to updated nodes, highlight them in browser, etc etc.

Also related to a syncScroll feature requested by @LeaVerou:

You could have a syncScroll setting with options:

  • off (default)
  • auto: scroll to first changed node
  • object literal. filter key: a function to filter out non-relevant nodes. Then you just scroll to the first one.

via https://front-end.social/@leaverou/112887390381826031

@zachleat zachleat added the enhancement New feature or request label Aug 1, 2024
@zachleat zachleat changed the title Browser event on domDiff updated a node. Browser event on domDiff updated node. Aug 1, 2024
@LeaVerou
Copy link

LeaVerou commented Aug 1, 2024

FWIW this would be better than nothing, but it doesn't really solve the core use case of being able to edit Markdown and seeing the result on the side, Overleaf style.

E.g. you often want to scroll without editing anything.

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

No branches or pull requests

2 participants