fixed global pos XY issue and fixed touchend issue