Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
iframe prevents parent page from scrolling when hovering on it

I have a page with an iframe which displays correctly, however, when the user is hovering on the iframe it is impossible to scroll the parent page as the scroll event is used inside of the iframe instead of the main page. I found this solution but I get the following error:

Uncaught DOMException: Permission denied to access property "document" on cross-origin object

So I tried to develop a workaround: I found out that setting mouse-events: none on the iframe allows the main page to scroll correctly; however, this of course prevents any element in the iframe to be clickable. Since I need links in the iframe to be clickable, I tried to dynamically set mouse-events: none when the user tries to scroll and mouse-events: auto when the user is not scrollin. Sadly, hovering on the iframe also prevents onScroll and onWheel events to be triggered at all, so this didn't work either.

Does anyone know of any viable solution or workaround to have clickable iframes in a page without them preventing the parent page from being scrollable?

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda