 # zs
 class ScrollCursorToLeft extends Scroll
   @extend()
-  direction: 'left'
 
   execute: ->
     @editorElement.setScrollLeft(@getCursorPixel().left)

    workspaceElement = atom.views.getView(atom.workspace)
    workspaceElement.classList.toggle(selector)

class Scroll extends Base
  @extend(false)
  scrolloff: 2 # atom default. Better to use editor.getVerticalScrollMargin()?
  cursorPixel: null

  constructor: ->
    super
    @initialize?()

  getFirstVisibleScreenRow: ->
    @editorElement.getFirstVisibleScreenRow()

# ze
class ScrollCursorToRight extends ScrollCursorToLeft
  @extend()

  execute: ->
    @editorElement.setScrollRight(@getCursorPixel().left)
