 
 FRAME_TIMEOUT = 400
 
+
+##
+# The amount of time until we trigger a fixation on an element.
+#
+# @const FIXATION_TIME
+
+FIXATION_TIME = 180
+
+
 ##
 # The EyeJS class.
 #

    # Element currently gazing-at.
    @gazeEl = null

    @windowActive = true

    @indicator = new Indicator size: 60, visible: true

    @frozen = false

    @enabled = true


  # @method triggerEvents
  # @public

  _triggerEvents: (event, el) ->
    event = event.split /\s+/
    if event.length == 1
      event = event[0]
      evt = new CustomEvent event, bubbles: true, clientX: 0, clientY: 0
      if el isnt null then el.dispatchEvent(evt)
    else
      for e in event
        @triggerEvents e



  _resetFixationTimer: ->
    clearTimeout @fixationTimer
    @fixationTimer = setTimeout =>
      @fixatedEl = @gazeEl
      if @fixatedEl is null then return
      @fixatedEl.setAttribute 'data-eyejs-fixated', ''
      @triggerEvents 'fixation'
      @emit 'fixation', @fixatedEl
    , FIXATION_TIME


  ##
  # Handles gaze event. If the current gaze element is unchanged, then
