I am setting up a split view HTML application for the iPad. I am using jQuery Mobile. I found a nice CSS way of doing the splitview (using
-webkit-overflow-scrolling: touch;
overflow:auto;
)
and this works fine for form fields, however as soon as I include the jQuery Mobile scripts when I click on any input field the div scrolls to the top (although input does seem to be focused on the form field that was tapped on.)
I would appreciate any suggestions on how to suppress that scroll to top behaviour.
I have searched and found heaps of people complaining about the scroll to top for page transitions, but I believe this is different.
You can see this behavior on this jsfiddle, scroll down the right hand side and click any input field, the screen scrolls to the top (edit the fiddle here) Removing the jqm scripts removes this behavior.
We did try the excellent asyraf9 splitview but performance degrades markedly as we add more form items, and I am reluctant to pick up a custom fork of jqm, and have been trying a straight css apoproach.