added tracking based on direction and fingertip position