 
   listenForDOMEvents: ->
     scrollViewNode = @refs.scrollView.getDOMNode()
-    scrollViewNode.addEventListener 'mousewheel', @onMousewheel
+    scrollViewNode.addEventListener 'mousewheel', @onMouseWheel
     scrollViewNode.addEventListener 'overflowchanged', @onOverflowChanged
     @getDOMNode().addEventListener 'focus', @onFocus
 

    @props.editor.setVisible(true)

  componentWillUnmount: ->
    @getDOMNode().removeEventListener 'mousewheel', @onMousewheel

  componentDidUpdate: ->
    @updateVerticalScrollbar()

        @props.editor.setScrollTop(@pendingScrollTop)
        @pendingScrollTop = null

  onMouseWheel: (event) ->
    # To preserve velocity scrolling, delay removal of the event's target until
    # after mousewheel events stop being fired. Removing the target before then
    # will cause scrolling to stop suddenly.
