lightbox2 icon indicating copy to clipboard operation
lightbox2 copied to clipboard

Block the Overflow

Open raphael-arce opened this issue 11 years ago • 9 comments
trafficstars

Hello,

i'm trying to learn by myself webdesign and english is not my main language, so please excuse my bad english/explanation of my issue. After adding the Lightbox2 to my website, i observed that it is possible to scroll when the lightbox is open. How could you block the scrolling (i think it is named the overflow) when the lightbox ist open ?

Thanks for the great work, Greetings, Multiflux

raphael-arce avatar Sep 09 '14 13:09 raphael-arce

Good question. This could be a nice feature to add-on.

kafeltz avatar Sep 09 '14 13:09 kafeltz

So, the user has to close the modal for have scroll again?

matheuslc avatar Sep 09 '14 14:09 matheuslc

Yes, kind of "locking" the screen while the lightbox is open.

raphael-arce avatar Sep 09 '14 16:09 raphael-arce

I understand. Add another option, like, "noScroll" and If this option is true, we block the scroll, if isn't, stay unblocked. What's you think?

matheuslc avatar Sep 09 '14 18:09 matheuslc

@Multiflux I made this option, can you test? * I made a pull request, but you can test now downloading from my fork.

matheuslc avatar Sep 09 '14 19:09 matheuslc

Exactly what i've searched for. Great work ! Thank you very much.

raphael-arce avatar Sep 09 '14 20:09 raphael-arce

@Multiflux I'm glad for that, thank you.

matheuslc avatar Sep 09 '14 21:09 matheuslc