Improve gesture detection part2

様々な工夫