As I’ve mentioned a few times, I use Mermaid to show preview diagrams of XML-based files. Now I’ve implemented the diff.DiffTool
plugin to show diagrams for these files at different versions side-by-side. I’m trying to implement scroll synchronization, but I’m not sure how to:
- Register a listener for scroll events in the embedded CEF browser.
- Assuming I’m able to do that, get the current percentage.
- Assuming I’m able to do that, force the other CEF browser to scroll to the same percentage (ignore smart/matched synchronization for this discussion).
Any insights on how this can be accomplished are greatly appreciated.