I have a mobile web page of the following format:
header - logo etc - absolute positioned
content - scrollable, absolute positioned
footer, 40px abs
If you use jQuery, you can use the codes as follow:
$('body').on('focusin', 'input, textarea', function(event) { if(navigator.userAgent.indexOf('Android') > -1 && ...){ var scroll = $(this).offset(); window.scrollTo(0, scroll); } });
Though, the bug should be solved now.