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

Prevent the lightbox from removing the browser scrollbar #71

Open
ghost opened this issue Apr 4, 2014 · 2 comments
Open

Prevent the lightbox from removing the browser scrollbar #71

ghost opened this issue Apr 4, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2014

Hi!

Well first of all I wanted to thank you for this wonderful unobstructive script.

I would like to know whether there is a way to prevent the lightbox from removing the browser scrollbar. The reason why I'm asking this is because when the script removes the browser scroll bar the content gets shifted to the left and I find it ugly from a UX perspective.

Is this something that can be accomplished?

Thanks!

@buckwilson
Copy link
Owner

Strange, it shouldn't be hiding the scrollbar by default that I'm aware of. There is a preventScroll option that's designed to do this but it's set to false by default.

@hkfreddy
Copy link

hkfreddy commented Jun 8, 2015

hi buckwilson,

The preventScroll option work great! That's what i am looking for.
But this option seems not listed in the option list at home page.

For the scroll problem, same as buckwilson said,
I think should be set to false by default.

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

2 participants