Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

224
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda