Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Safari scrolling down website automatically

When using Safari on an iOS device, a website I'm working on scrolls down automatically:

http://thelimbic.com/

I'm completely unsure why, and have investigated without success:

  1. jQuery (I thought perhaps it's using a scrollTop function)
  2. CSS (nothing in here suggests an automatically scroll)
  3. Image Loading - still unsure about this one, I thought that perhaps the issue is when images are loaded after you're viewing the website it pushes the scroll down?
like image 660
Ben Potter Avatar asked Nov 10 '22 16:11

Ben Potter


1 Answers

you can check for any "autofocus" attribute given to form fields. Especially in MAC it auto focuses on form field regardless of where your form is placed.

For example:

input type="text" name="fname autofocus"

Hope this resolves your problem.

like image 86
shivendu Avatar answered Nov 22 '22 10:11

shivendu