I have an image which is avoiding users to scroll when cursor is over and it is in a very bad position because it is in the mobile finger-friendly area where almost everyone make scroll. I tried with pointer-events: null; and then it was possible to scroll, but this image is a button and the click event is obviously also prevented now.
I tried to apply it through JavaScript, but it doesn't override the CSS property, so I was wondering if there would be a way to do it.
CSS
.element-id {
position: fixed;
pointer-events: none;
}
Function
$('#element-id').click(function(){
$('#entrevista').toggleClass('ws-visible');
$('#video').get(0).play();
});
EDIT:
My problem is that a fixed positioning element is affecting the regular scroll behavior of the page.
I found "bubbling" searching through internet but I don't understand it very well. Is it something that could help here? Because if I understood the basics, it makes the event go deeper in the DOM so I suppose it is propagated from the upper element to the lower. Is this how it works?