E
E
evnuh2012-06-14 17:59:56
JavaScript
evnuh, 2012-06-14 17:59:56

How to fix position of fixed element after page scroll programmatically?

Known on the Internet bug in iOS (MobileSafari). After scrolling the page with javascript (.scrollTo() jQuery plugin), all fixed-elements inside the page actually remain in their old places. In my case, this is the menu. Although it is drawn in the same place, you can’t click on it until you touch the page with your finger and move the entire page downward.

How to fix? Nobody faced? Tips from StackOverflow didn't help.

I tried to set the offset of the document to +1px after the animation, it did not help. I tried after the animation to change the position to relative for 300ms, it does not help either.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly, 2012-06-14
@taliban

Have you tried uninstalling and reinstalling?

E
ertaquo, 2012-06-14
@ertaquo

Try pulling the element out of the DOM and sticking it back in using .detach(), .appendTo().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question