https://github.com/benignware/parentscroll-fix
This fix prevents scrolling of parent container in overflow elements on iOS and Android
https://github.com/benignware/parentscroll-fix
Last synced: 11 months ago
JSON representation
This fix prevents scrolling of parent container in overflow elements on iOS and Android
- Host: GitHub
- URL: https://github.com/benignware/parentscroll-fix
- Owner: benignware
- License: gpl-2.0
- Created: 2014-01-31T18:53:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T13:27:09.000Z (about 11 years ago)
- Last Synced: 2024-03-09T18:14:02.400Z (over 2 years ago)
- Language: JavaScript
- Size: 188 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
parentscroll-fix
================
This fix prevents scrolling of the document when body is set to overflow: hidden on iOS6 and Android.
Issue
-----
The issue is described here:
* http://getbootstrap.com/getting-started/#support-fixed-position-keyboards
Fix
---
The fix tracks the touch position on the document to determine the scrolling direction and prevents scrolling when moving beyond the edges.
Additonal Notes
--------------
You want to trigger smooth scrolling behaviour on iOS like this:
```
.modal {
-webkit-overflow-scrolling: touch;
}
```