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

        rawy: frame.avg.y
        x:    @smoothedX.top()
        y:    @smoothedY.top()
      @emit 'gaze', e

      # Emit the raw frame, if anyone cares.
      @emit 'raw', frame

      # Move the indicator to the new position.
      @indicator.move @smoothedX.top(), @smoothedY.top()

      # Handle the actual gaze.
      @handleGaze()


    @blinks = new BlinkController

    @blinkEl = null

    @blinks.on 'open', (timeClosed) =>
      @triggerEvents 'eyesopen'
      if timeClosed > 400 and timeClosed < 2000
        @emit 'blink', @fixatedEl
        @triggerEvents 'blink click'
      @_preventElChange = false

    @blinks.on 'close', =>
      @_preventElChange = true
      @triggerEvents 'eyesclose'

    # The last frame received.
