   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: ->

      'autohide-tree-view:show': => @show true, true
      'autohide-tree-view:hide': => @hide true

    # disable when the tree-view package gets deactivated
    @subs.add atom.packages.onDidDeactivatePackage (pkg) ->
      treeView = treeViewEl = null if pkg.path.match /\/tree-view\/?/i

    # respond to opening a file/directory
    @subs.add treeViewEl, 'click', '.entry', (event) =>
      @openEntry event

    # listen to commands of the tree view
    @subs.add treeViewEl,
      # adjust tree view size when expanding a directory

      minimum: 1

  activate: (state) ->
    # event/command subscriptions
    @subs = new SubAtom()
    # default to @enabled = true
    @enabled = state.enabled ? true
    # initialize now if tree-view package is already enabled
    if atom.packages.isPackageActive 'tree-view'
      @initialize()
    # initialize this package when the tree-view package is activated
    @subs.add atom.packages.onDidActivatePackage (pkg) =>
      # @initialize() if pkg.path.match /\/tree-view\/?$/i
      @initialize() if 'tree-view' is path.basename pkg.path

  deactivate: ->
    # cleanup the tree view element
    @disable() if @enabled
    # dispose subscriptions
    @subs.dispose()

