                 @recipeState[name].tearDownDelay = recipe.tearDownDelay
 
     freezeMouse: (handPosition) =>
-        # screenSize = @robot.getScreenSize()
-        # normalizedHandPosition =
-        #     x: handPosition.x * screenSize.width
-        #     y: handPosition.y * screenSize.height
-        # @freezePosition = normalizedHandPosition
         @freezePosition = @robot.getMousePos()
-        console.log "Freeze mouse", @freezePosition
+        #console.log "Freeze mouse", @freezePosition
         @mouseState = 'frozen'
 
     unfreezeMouse: (handPosition) =>


    mouseMove: (handPosition) =>
        if(@mouseState == 'free')
            @offsetMapping =
                x: @freezePosition.x - @unfreezePosition.x
                y: @freezePosition.y - @unfreezePosition.y

            screenSize = @robot.getScreenSize()
            normalizedHandPosition =
                x: handPosition.x * screenSize.width
                y: handPosition.y * screenSize.height
            moveTo =
                x: normalizedHandPosition.x + @offsetMapping.x
                y: normalizedHandPosition.y + @offsetMapping.y
            @robot.moveMouse(moveTo.x, moveTo.y)

    # buttonAction: up|down|click|doubleClick, button: left|right

        @unfreezePosition =
            x: 0
            y: 0
        @keyboardModel =
            test: false
        @recipeState = {}
