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

223
Vistas
pagepiling.js setAllowScrolling not working on mobile device

I'm using pagepiling.js for my website. It has 5 sections for the user to scroll through and then the rest of the website under it all.

In order to scroll through the content under the pagepiling, I'm using the afterLoad callback to remove the overflow style and to enable/disable scrolling:

$('#pagepiling').pagepiling({
    scrollingSpeed: 700,
    navigation: false,
    afterLoad: function (anchorLink, index) {
        if (index == $('#pagepiling .section').length) {
            $('html, body').css('overflowY', 'auto');
            $.fn.pagepiling.setAllowScrolling(false);
        }
        $(document).scroll(function () {
            if ($(window).scrollTop() == 0) {
                $('html, body').css('overflow', 'hidden');
                $.fn.pagepiling.setAllowScrolling(true);
            }
        });
    },
});

This works great in desktop to allow the user to scroll the page after the last pagepiling slide but has no effect on a mobile device.

about 4 years ago · Juan Pablo Isaza
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