Good evening, I ran into a problem. I am trying to make the mobile version of the page scroll when the slidemenu is open, and not the content of the page itself. Made this way, the content of the page is blocked, and with slidemenu there are problems.

$("#main-nav").on("click", toggler, function (e) { if ($('.main-index').hasClass('slide-active')) { $('body').css('overflow-y', 'hidden'); $('#slidemenu').css('overflow', 'scroll'); } else { $('body').css('overflow-y', 'scroll'); $('#slidemenu').css('overflow', 'hidden'); } }); 

PS did on bootstrap on this template http://bootstraptema.ru/stuff/snippets_bootstrap/menu/slidemenu_bootstrap_3/24-1-0-542

    1 answer 1

    For #slidemenu you need to register the following styles:

     #slidemenu { position:fixed; height:100%; overflow-y:auto; }