M
M
Marian Vitak2020-04-17 13:03:01
css
Marian Vitak, 2020-04-17 13:03:01

Why doesn't the menu scroll all the way to the end?

The menu on the phones does not want to scroll to the end, I do not understand what this problem is connected with.
Link to site.
In order to open the menu, you need to click on the button Filters and Products

var menuLink = $('.js-menu-link'),
        menuClose = $('.menu-close'),
        overlay = $('.overlay');
    menuLink.on('click', function (e) {
        e.preventDefault();
        var thisMenuLink = $(this).attr('data-target');
        $(thisMenuLink).addClass('active');
        overlay.addClass('active');
        $('html, body').addClass('hidden');
    });
    menuClose.on('click', function (e) {
        e.preventDefault();
        var thisMenuClose = $(this).attr('data-target');
        $(thisMenuClose).removeClass('active');
        overlay.removeClass('active');
        $('html, body').removeClass('hidden');
    });
    overlay.on('click', function (e) {
        e.preventDefault();
        $('.js-menu').removeClass('active');
        overlay.removeClass('active');
        $('html, body').removeClass('hidden');
    });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marian, 2020-04-17
@MarianVytak

I still did not understand why the menu behaved this way, but the bug was fixed.
For the menu, the height was set 100vhto , I replaced it with autoand addedbottom: 0;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question