add touch

add touch and fix drag offset.