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

178
Vistas
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 Respuestas
Responde la pregunta

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 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