         @props.editor.setScrollTop(@pendingScrollTop)
         @pendingScrollTop = null
 
-  onMousewheel: (event) ->
+  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.

    @props.editor.setVisible(true)

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

  componentDidUpdate: ->
    @updateVerticalScrollbar()


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

