Scroll event scrolling from Iframe to parent in Firefox

I have an iframe inside a wordpress page. The frame is automatically sized to its content size, so it is necessary for vertical scrolling to view the content. It works well on all browsers, but Firefox "steals" the scroll event when the IFrame is hovered over so the parent page cannot scroll down. How can I pass the scroll event to the parent?

+3


source to share


1 answer


I know one hacky solution. Add an empty div element that will overlap the iframe.



The mouse-scroll event will not be reached for the ifrmae the parent can be delivered to. The page will scroll even if the mouse was on the iframe.

0


source







All Articles