I've been experiencing a strange bug in Safari iOS8. On the login page of our website, if you click on the username textbox, the keyboard shows and then your focus is moved automatically to the password textbox.
After deleting a lot of code to try and find the cause, I have finally been able to create a simple reproduction.
Essentially all you need to do is register a "touchstart" event on a parent container (like a form). Then you focus the textbox inside the form using javascript.
Once the user goes to click the textbox, the above bug happens and their click is repeated after the page moves up.
The device must also be in landscape mode to force the page to scroll when the keyboard appears.
You can see a jsfiddle of it here: http://jsfiddle.net/9xnfpLrd/22/
document.getElementById("myform").addEventListener('touchstart', function(e) {});
document.getElementById("myfirstelement").focus();
My Safari version is the following:
Mozilla/5.0 (iPad; CPU OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B410 Safari/600.1.4
I thought I would post this all here in the hopes that someone who also has this issue doesn't have to spend 2 days figuring this all out.