Ben Potter
Ben Potter

Reputation: 875

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?

Upvotes: 5

Views: 4775

Answers (1)

shivendu
shivendu

Reputation: 11

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.

Upvotes: 1

Related Questions