Detect if finger lifted off screen

Hello once more…Now I have a really simple question. Here is my code:

if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) 
    var touchDeltaPosition:Vector2 = Input.GetTouch(0).deltaPosition;
    if( touchDeltaPosition.x <-10)
    transform.position.z += 3;

It detects finger movement when I touch the screen, but I need to detect swipe only when finger lifts off the screen. Any sugestions?

Take a look at TouchPhase.Ended: it tells when the touch has finished.