mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Update display synchronously when scrolling to prevent flicker
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user