So I have a video, with an anchor on top. The button works fine on my PC, but when I view it on an iPad, I’m unable to click on the anchor.
I’ve replicated it with the following jsbin example.
Any suggestions?
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.
I have a solution. It works for me since I don’t need the controls on the video to work, but may not work for everyone.
This is most suitable for situations where the video must be unlocked, or if you need to sign in to view the video.
To cut to the chase, just add the following CSS property to the video:
video { pointer-events: none; }I’m going to mark this as the answer to my question, but if someone can give me a fix where the video controls still work, I will accept yours as the correct answer.
Update & Alternative Solution
Okay, so I’ve found that the best solution for my needs is to remove the controls from the video.
Simply changing
<video controlsto<videodoes the trick.