Is it possible for the child of a div set to pointer-events: none to have pointer events?
I need the div that holds another div to allow pointer events to pass through, but for the div itself to still have events.
Is this possible?
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.
Yes, it’s possible, and you basically just described how. Disable it for the parent and enable it for the child.
pointer-eventsis supported in almost every browser, including IE11Please note that
pointer-events: allis for SVG only.For HTML, only
autoandnoneare supported values.Demo: http://jsfiddle.net/4gQkT/