mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove unused autoscrollOnAttach flag from CursorView
We no longer call `updateDisplay` immediately when the cursor is attached. Instead, we always attach and remove cursor views from `Editor#updateDisplay`, so we will decide whether to autoscroll at that level.
This commit is contained in:
@@ -11,10 +11,8 @@ class CursorView extends View
|
||||
|
||||
editor: null
|
||||
visible: true
|
||||
autoscrollOnAttach: null
|
||||
|
||||
initialize: (@cursor, @editor, options={}) ->
|
||||
@autoscrollOnAttach = options.autoscroll ? true
|
||||
@cursor.on 'change-screen-position.cursor-view', (screenPosition, { bufferChange, autoscroll }) =>
|
||||
@updateDisplay({autoscroll})
|
||||
@removeIdleClassTemporarily() unless bufferChange
|
||||
|
||||
Reference in New Issue
Block a user