Skip to content

bug: Long forms causing erratic scroll behavior on iOS #2911

@DavidFrahm

Description

@DavidFrahm

Type: bug

Platform: ios 8 webview

Creating this issue after discussion and confirmation with several others in this forum thread: http://forum.ionicframework.com/t/click-a-input-field-whole-app-jumps-down-and-back-to-the-original-place/10876/

Given that you have an Ionic app running in iOS (simulator or on device)...
When you tap to select inputs further down the form, where they occupy the space where the keyboard will display when it opens...
Unexpected behavior is of an erratic jump of the screen, where the amount of jump increases the further down the input is on the form.

Expected behavior is simply no erratic/jumpy screen.

Note that AFTER the jumpy screen, the form scrolls up smooth like normal to bring the focused input element into view above the keyboard.

Workaround is to use the Keyboard plugin, and disableScroll(true) to disable native scrolling. (Although I am new enough to Ionic that I'm not sure what the negative impacts of that might be.)

Codepen: http://codepen.io/davidfrahm/full/yygEWZ
Screencast: http://cl.ly/0v3R1p19181S

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions