mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Don't defer scroll after cursor changes position to make scrolling feel smoother
This commit is contained in:
@@ -688,9 +688,8 @@ class Editor extends View
|
||||
|
||||
scrollTo: (pixelPosition) ->
|
||||
return unless @attached
|
||||
_.defer => # Optimization
|
||||
@scrollVertically(pixelPosition)
|
||||
@scrollHorizontally(pixelPosition)
|
||||
@scrollVertically(pixelPosition)
|
||||
@scrollHorizontally(pixelPosition)
|
||||
|
||||
scrollVertically: (pixelPosition) ->
|
||||
linesInView = @scrollView.height() / @lineHeight
|
||||
|
||||
Reference in New Issue
Block a user