bootstrap-modal-ios

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i bootstrap-modal-ios

Weekly Downloads

33

Version

1.0.1

License

ISC

Unpacked Size

14 kB

Total Files

8

Last publish

Collaborators

  • radogado