cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

(iOS) Undesired scroll bounds/limits when keyboard is up (ionic-exclusive?)

Open Lindsay-Needs-Sleep opened this issue 5 years ago • 1 comments

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 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

WITH cordova-plugin-ionic-keyboard

See how the app lets me scroll all the way on the first try The not-so-bug Video

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? 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?

Lindsay-Needs-Sleep avatar Mar 23 '20 12:03 Lindsay-Needs-Sleep

i have the same problem

lsc949982212 avatar Mar 27 '20 08:03 lsc949982212