     activate this.element.id
 
   handle = (desired) -> (direction) ->
+    return if STATE.navigating
     return unless direction is desired
     handler.bind(this)(direction)
 

module.exports = ->
  $el = $('.js-logged-out-menu')
  $links = $el.find('a')
  $sections = $('.js-section[id]')

  activate = (id) ->
    $links

    handler: handle 'down'

  $links.on 'click', (e) ->
    e.preventDefault()

    STATE.navigating = true

    id = $(this).attr('href').split('#').pop()

    activate id

    $target = $sections.filter("[id='#{id}']")

    yPos = $target.offset().top

    $html
      .animate(scrollTop: yPos, 'fast')
      .promise()
      .then ->
        STATE.navigating = false
