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

365
Vistas
jQuery scrollTop not working inside iframe on Iphone

This works everywhere, except for iframe on iOS.

the example is as

when you click on a category it should scroll , only I have the problem that it doesn't work on IOS

https://codepen.io/fdemian/full/ZjpXBe

I used

        $('html, body').animate({ scrollTop: offsetTop }, 0);
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You have to animate $("body") and not $("html, body") because the mobile ios doesn’t know it

about 4 years ago · Juan Pablo Isaza Denunciar

0

I testesd it again. Seeing other solutions, the following function worked for me:

  • for smartphone (apple, android)
    window.scrollTo(x, y)
  • for pc
    $('html,body').animate({scrollTop: x, scrollLeft: y}, milliseconds)
about 4 years ago · Juan Pablo Isaza Denunciar
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