Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webslide Menu issue with overflow hidden on html element #5

Open
wilbertcaba opened this issue Feb 18, 2020 · 0 comments
Open

Webslide Menu issue with overflow hidden on html element #5

wilbertcaba opened this issue Feb 18, 2020 · 0 comments

Comments

@wilbertcaba
Copy link
Owner

When the Webslide Menu mobile drawer is open it makes the hero sections, that I usually create with fixed position, unscrollable.

In other projects the following code has resolved this issue:

CSS:

html {
    overflow: visible
}

JS:

    // WEBSLIDE MOBILE MENU
    // Toggle overflow-hidden class on HTML element when Webslide Menu is active


    $('#wsnavtoggle').click(function () {
        $('html').toggleClass('overflow-hidden')
    })
    $('.overlapblackbg').click(function () {
        $('html').removeClass('overflow-hidden')
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant