0

Events in jQuery

I have a container and a content, when using over container it's the offset of the container however when using over the content, it takes offset of the content... How I can use the "on" function for maintain the focus on the container offset property instead of taking content offset property. Ex: see the code https://sololearn.com/compiler-playground/WlGpHaO7ayX9/?ref=app

19th Feb 2024, 9:44 PM
Marco Cárdenas
Marco Cárdenas - avatar
1 ответ
+ 3
Marco Cárdenas how about this? you could just add a pointer-events:none;touch-action:none; to the #in so that it would be invisible to clicks. https://sololearn.com/compiler-playground/W2pRDV3SEbfF/?ref=app
20th Feb 2024, 12:33 AM
Bob_Li
Bob_Li - avatar