   initialize: ->
     @attach()
 
-    @on('mousewheel', @mousewheel.bind(this))
+    @on('mousewheel', @mouseWheel.bind(this))
+    @on('mousedown', @mouseDown.bind(this))
 
     @subscribe @paneView.model.$activeItem, @onActiveItemChanged
     @subscribe @paneView.model, 'destroy', => @destroy()

      @miniOverlayer[0].style.webkitTransform =
        @miniOverlayer[0].style.transform = 'translate3d(0, ' + top + 'px, 0)'

  transform: (width, scale, xy) ->
    scaleStr = 'scale(' + scale.join(',') + ')'
    translateStr = 'translate3d(' + xy.join(',') + 'px, 0)'

  getScrollViewClientRect: ->
    @scrollViewLines[0].getBoundingClientRect()

  mouseWheel: (e) ->
    {wheelDeltaX, wheelDeltaY} = e.originalEvent
    if wheelDeltaX
      @editorView.scrollLeft(@editorView.scrollLeft() - wheelDeltaX)
