Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.16 KB

README.md

File metadata and controls

22 lines (11 loc) · 1.16 KB

Bootstrap Modal for iOS stops page scrolling while a modal is displayed and adjusts the overlay position according to iOS Safari toolbars. Also, scrolling is now smooth.

Thijs Huijssoon created the disableBodyScroll function which stops page scrolling except the modal. I added the adjustModal function, which makes sure the overlay is positioned over the actual viewport. It also reacts to toolbars appearing.

Demo: https://radogado.github.io/bootstrap-modal-ios/

Before:

After:

npm install --save-dev bootstrap-modal-ios

Migrated from natUIve