Skip to content

Still able to scroll #243

Open
Open
@PyrokineticDarkElf

Description

@PyrokineticDarkElf

I've tried this on Codepen and a simple page seems to work fine.

When I add it to my website, the script runs and the overflow style is applied to the body, but, I'm still able to scroll up and down the page? (Win 10 Chrome v97.0.4692.99)

Happy to provide a link privately.

Activity

zackees

zackees commented on Aug 24, 2022

@zackees

yup same here.

nicoladj77

nicoladj77 commented on Oct 17, 2022

@nicoladj77

@Staples1010 @zackees did you find a solution for this?

PyrokineticDarkElf

PyrokineticDarkElf commented on Oct 19, 2022

@PyrokineticDarkElf
Author

@nicoladj77 Sadly no :(

Muskos

Muskos commented on Mar 31, 2023

@Muskos

Try to add in your CSS:
body, html { height: 100%; }
And also it will be better to share the example.

rick-liruixin

rick-liruixin commented on Apr 15, 2023

@rick-liruixin

Try it with this package. If it doesn't work, describe the problem in detail and I'll fix it

npm i body-scroll-lock-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nicoladj77@Muskos@zackees@rick-liruixin@PyrokineticDarkElf

        Issue actions

          Still able to scroll · Issue #243 · willmcpo/body-scroll-lock