 
     if @lastFrame
 
-      closedThisFrame = frame.avg.x == 0 and frame.avg.y == 0
-      openLastFrame   = @lastFrame.avg.x != 0 and @lastFrame.avg.y != 0
-
-      closedLastFrame = @lastFrame.avg.x == 0 and @lastFrame.avg.y == 0
-      openThisFrame   = frame.avg.x != 0 and frame.avg.y != 0
+      closedThisFrame = !frame.available.both
+      openLastFrame   = @lastFrame.available.both
+
+      closedLastFrame = !@lastFrame.available.both
+      openThisFrame   = frame.available.both
 
       if closedThisFrame and openLastFrame
         @closes.push(new Date());

    left  = frame.left.avg
    right = frame.right.avg

    if (open  && close) then @handleBlink open, close
    if (dOpen && close) then @handleDoubleBlink dOpen, close

    # if ((left.x == 0 && left.y == 0) && (right.x != 0 && right.y != 0))

    if (diff < 200)
      @indicator.scale(0.8, 200)
      @freeze()
      #@triggerEvents 'doubleblink mousedown mouseup click'


  handleBlinks: (frame) ->
