edit touch event
add deltaDistance and deltaTime
add magnet