joehewitt / scrollability

Imitates iOS native scrolling in JavaScript.
http://joehewitt.github.com/scrollability
Other
1.78k stars 147 forks source link

Confusion with form elements #2

Open andremedeiros opened 13 years ago

andremedeiros commented 13 years ago

When adding form elements on the list, and navigating through them with the Previous/Next buttons on the iPhone keyboard, the Scroller loses track of where it is.

This leads to the user not being able to scroll up to the top, and if the user scrolls down to the bottom there will be a large chunk of whitespace area.

imaffett commented 12 years ago

If someone wants to fix this, the issue is that when trying to find the current position (and bounds) to move from, it does not account for element scrollTop and scrollLeft position.

When the form assistant pages through, it's moving the div's scrollTop/scrollLeft properties.