Prevent parent page from scrolling when mouse is over embedded iframe
问题 ...without limiting the scroll inside the iframe or the need to specifically name the scrollable elements. I have a google-map-like widget that can be embedded in 3rd party websites in the form of an iframe embed code. When people use mouse wheel over my widget I want only the content of the widget to scroll and not the parent page. My question is similar to How to prevent page scrolling when scrolling a DIV element? but my problem is that my ifrmae contains multiple elements including media