Skip to content

disableScrolling/overflow hidden not working #737

@nathanbrookes

Description

@nathanbrookes

Hello

I recently updated my website with lightbox2, and added some code in order to use swipe on mobile as detailed here; https://stackoverflow.com/questions/28409847/lightbox2-swipe-gesture-for-touchscreens

All of that works perfectly but I can not get the disableScrolling function to work. I have changed the setting to 'true' but it doesn't appear to be initializing the body.lb-disable-scrolling function. I tried adding an option script in the index html, that didn't work, I tried adding an overflow property in the lightbox css, that didn't work. Im wondering if maybe something I added for the gesture control is affecting the overflow function? or maybe something else. I'm really not sure at this point

any help would be appreciate. you can view my website at https://www.nathanbrookes.info/ to see what I'm talking about

thanks!

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

    Issue actions