change onTouchMoved function

change diff variable by using touch’s delta property