Auto-scroll last to avoid forcing a reflow before we're done modifying

This commit is contained in:
Nathan Sobo
2012-11-14 15:04:13 -07:00
parent 28a937089f
commit 7f8e2643f5

View File

@@ -737,11 +737,11 @@ class Editor extends View
updateDisplay: (options={}) ->
return unless @attached
@updateRenderedLines()
@highlightCursorLine()
@updateCursorViews()
@updateSelectionViews()
@autoscroll(options)
@updateRenderedLines()
@highlightCursorLine()
updateCursorViews: ->
if @newCursors.length > 0