support mouse as well as touch