I used mousedown event as hope that it will work when a user touches the element but it didn’t seem to show the effect on andriod tablet. How do I fix this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can try, onclick mouse handler. On a touch, Android first fires all touch events followed by mouse events to support more devices. Hence, if you want better performance, try “ontouchstart” and “ontouchend” as well.