lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.17k stars 1.76k forks source link

Fix iOS scrolling bar #632

Closed spdivn closed 5 years ago

spdivn commented 5 years ago
html.lb-disable-scrolling {
  overflow: hidden;
  position: static;
  height: 100vh;
  width: 100vw;
}
lokesh commented 5 years ago

Thanks for reporting.

For now, I'm doing the following:

Removed the iOS disable scroll CSS which was causing bigger issues, including inconsistent positioning of the image on mobile views, and a jump to the top of the viewport/

If the disableScrolling option is set to true, scrolling will still be possible on iOS after this PR is merged.

I'll come back to a proper scroll disabling update in iOS in the future if there is interest. https://github.com/lokesh/lightbox2/pull/650