modify touch detection #109 #165