gruehle/MarkdownPreview — pull request #3 by njx (2013-02-20 23:22:41+00:00)
Title: Track the user's cursor position, keeping it scrolled into view and showing it with a fake cursor

This isn't quite ready to pull as-is:

* For some reason, calling `scrollIntoView()` on the fake cursor the very first time causes the entire Brackets window to scroll up a little bit (it fixes itself once you click back in the code editor). No idea why that is, since the iframe should be fully visible by the time we do this, and the cursor is just at the top of the document. I feel like there ought to be something we could do in the core of Brackets to prevent this problem generally, but I'm not sure what. Any thoughts?

* I left in the code that preserves the existing scroll pos on update, but I'm not sure if it's actually still useful, since the rule is now that it always tries to scroll to the cursor whenever you make a change or change the selection, and those are the only things that can trigger an update.