   enable: ->
     @enabled = true
     # add class for css
-    treeViewEl.classList.add 'autohide'
+    treeViewEl.classList.add 'autohide', 'autohide-hover-events'
     # minimize the tree-view
     @applyHiddenWidth()
     @hide true
-    # enable hover events
-    @enableHoverEvents()
 
   # disable autohide behavior
   disable: ->

    # remember if enabled
    {@enabled}

  initialize: (state, treeViewPkg) ->
    # get the tree view model and element
    treeView = treeViewPkg.mainModule.createView()
    treeViewEl = atom.views.getView treeView
    # set @enabled to true if it doesn't exist in state
    @enabled = state ? true
    # enable if was enabled in previous session or if first session with autohide-tree-view
    @enable() if @enabled


      @hide true

  # apply the hiddenWidth setting
  applyHiddenWidth: (width) ->
    return unless @enabled
    width ?= atom.config.get 'autohide-tree-view.hiddenWidth'
    # set the width of the tree view
    treeViewEl.style.width = "#{width}px"
    # set the width of the tree view panel to adjust for
