     if selectedEntry?
       if selectedEntry.classList.contains('directory')
         if @selectEntry(selectedEntry.entries.children[0])
-          @scrollToEntry(@selectedEntry())
+          @scrollToEntry(@selectedEntry(), false)
           return
 
       if nextEntry = @nextEntry(selectedEntry)

    else
      @element.scrollTop + @element.offsetHeight

  scrollToEntry: (entry) ->
    element = if entry?.classList.contains('directory') then entry.header else entry
    element?.scrollIntoViewIfNeeded(false) # false = just enough to make the item visible

  scrollToBottom: ->
    if lastEntry = _.last(@list.querySelectorAll('.entry'))

    else
      @selectEntry(@roots[0])

    @scrollToEntry(@selectedEntry(), false)

  moveUp: (event) ->
    event.stopImmediatePropagation()
