fixed a bug that could occur when leaving app
added Touch and Hover methods