ionic-team / ionic-team/cordova-plugin-ionic-webview
(iOS) Undesired scroll bounds/limits when keyboard is up (ionic-exclusive?)
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
When I have a long page with text input fields (long enough to scroll a decent amount)
* If I select an input near the bottom of the page I am unable to scroll all the way up. (Or vice-versa.)
* After being denied scrolling all the way up (or down) once, it then lets me scroll the full length of the page.
## Environment
iOS 12.2 (iPhone X emulated), 13.3.1 (iPhone 6s real), 12.4.5 (iPad mini 2 real)
[slightly modified ionic tutorial project](https://github.com/Lindsay-Needs-Sleep/ionic-tutorial)
cordova-plugin-ionic-webview 4.x
## Investigation
* When using cordova-plugin-ionic-webview 4.x on a pure Cordova project it is fine.
* Maybe (quite possibly) I just don't know what I am doing with ionic and missed a configuration option or something
* When I install cordova-plugin-ionic-keyboard this issue disappears
## NO cordova-plugin-ionic-keyboard
See how the app apparently thinks I've reached the top on the first attempt at scrolling
[The Bug Video](https://www.youtube.com/watch?v=8BB20OhYvSY&feature=youtu.be)
## WITH cordova-plugin-ionic-keyboard
See how the app lets me scroll all the way on the first try
[The not-so-bug Video](https://www.youtube.com/watch?v=_wD8QYpXv8U&feature=youtu.be)
## Thoughts
Is cordova-plugin-ionic-keyboard maybe just covering up the issue?
* I say this because when cordova-plugin-ionic-keyboard is included, the keyboard pops up, but the content does not shift up, (and unfortunately the keyboard covers the selected input).
* Maybe the content shifting up a bit throws off the scroll bound limits somehow
* Maybe this is related to the shmorgishborg of issues surrounding [this issue](https://github.com/apache/cordova-ios/issues/417)? Though this focuses on keyboard dismissal issues... not keyboard pop-up issues
* The shmorgishborg has been slightly documented in PR #533
* Not sure why it only happens on an ionic project and not a cordova one. :/
**Is this just me?** (If so don't worry about this issue, because I have no intention of actually using ionic. :p) (Just curious because I was working on related stuff)
**Any ideas?**
Contributor guide
Assessment
This issue has not been assessed yet.