Update display synchronously when scrolling to prevent flicker

This commit is contained in:
Nathan Sobo
2012-11-14 15:10:05 -07:00
parent 7f8e2643f5
commit 00a6472a2c

View File

@@ -460,7 +460,7 @@ class Editor extends View
return if scrollTop == @cachedScrollTop
@cachedScrollTop = scrollTop
@requestDisplayUpdate() if @attached
@updateDisplay() if @attached
@renderedLines.css('top', -scrollTop)
@underlayer.css('top', -scrollTop)