I’m very new to CM6 and probably missing some obvious pieces but please help me.
I want to scroll editor to a specific line with fractional precision. My use case is I’m showing a preview of the document being edited. I have a mapping between vertical positions in the preview and line numbers. I want to achieve smooth scrolling of the editor when the preview is scrolled.
I think I’ve found how to get line a number from editor position but I can’t find how to get a position from line number. I also found how to scroll a position into view but I believe it’s granularity is whole lines and it’s instantaneous without an option to animate it.