when only one touch is on the screen the whole process can be simplified
refactor
fix deltaXY issue