Quick question: I need my scrollintoview call to be done AFTER all my decorations have been applied as they affect the DOM and have their own height, as they are inserted into the DOM. Currently I tried calling the scrollintoview after creating the editor view, but obviously that represents the document BEFORE the decoration plugin has been fired.
Do I need to create a separate scroll plugin that checks to see if there are decorations are there yet? Just a bit confused as to when and where I need to call the scrollintoview to get the current selection properly on the screen.
Well, I got it to work by putting that into the decoration plugin’s appendtransaction function, which actually works great. I wish it had options like smooth or a pixel offset so that the paragraph scrolled into view was not abutting either the top or bottom of the editor box so tightly, but that is not a deal breaker anyhow. Good to know it is a flag that gets set, although I imagine there is then a more traditional scroll buried in the PR code as transactions are completed.