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

176
Views
How to disable scrolling of the page on mobile when the swipe is initiated on a specific Div?

I have a fixed menu at the bottom of the screen on mobile devices. When you swipe up in the trigger area, it opens the menu and vice versa (closes it when you swipe down on the menu)

My issue is that when I swipe up, it scrolls the page down and when I swipe down it scrolls the entire page up.

How can I disable page scrolling when the swipe is initiated in a certain area?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Add class in body tag when you swipe up from your bottom menu. In that new class put overflow hidden CSS. I suggest it looks good if you add click effect instead of swipe up. Or here this is one similar question.

$('#menu li a').on('click', function(){
    $('body').removeClass('overflow-hidden');
    $(this).parents('body').addClass('overflow-hidden');
});
.overflow-hidden{
      overflow: hidden;
}

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