Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!