- The last time I wrote C++ code was probably back in 2004.
- I don't know Mercurial yet, so I had to use
Hg-Gitin order to convert this repo to a git repository. (https://github.com/monoblaine/WinMerge2011)
I'm trying to implement a smooth-scrolling animation that's supposed to happen when I jump from a diff to another one that's not visible in the editor at that moment (a distant diff, I mean).
This is what I came up with:
Using the following changes:
The obvious problem here is that the two panes do not scroll simultaneously because async programming is one of the many things I suck at C++.
Here I've tried calling
pOtherView->ScrollToSubLine(nLine); in separate threads to make them run simaltaneously, which kinda worked, but led to problems related to incorrect positioning of the caret so I gave up.
Any guidance, advice, etc. would be greatly appreciated.