bootstrap-modal-ios-polyfill

A (hacky) JavaScript polyfill to enable smooth scrolling on iOS without the background scrolling with it.

Usage no npm install needed!

<script type="module">
  import bootstrapModalIosPolyfill from 'https://cdn.skypack.dev/bootstrap-modal-ios-polyfill';
</script>

README

Bootstrap modal iOS polyfill

A (hacky) JavaScript polyfill to enable smooth scrolling on iOS without the background scrolling with it.

Installation

  • npm install --save bootstrap-modal-ios-polyfill
  • Load the bootstrap-modal-ios-polyfill.js file
  • Require it: require('bootstrap-modal-ios-polyfill')
  • Your done!

Disclaimer

Yes, we know, this is really hacky, but works for our use-cases. Any improvements are welcome! 😁

Example

https://htmlpreview.github.io/?https://github.com/enflow-nl/bootstrap-modal-ios-polyfill/blob/master/example.html