In Sublime When the line getting swap reach bottom of the view ,it scrolls with the line. but it was not happening in CodeMirror. so added <code>scrollIntoView</code>