A
A
Anatoly2012-02-21 19:10:27
safari
Anatoly, 2012-02-21 19:10:27

ipad + jquery + animation?

Hello, just a question:
I am writing a website for ipad and I need to make a paging effect when I slide with my finger. Everything is fine, the simple code was made simply:
element.animate( {'left': offset}, 'slow', function(){ /*end code*/ }
When sliding, the element moves to the side by the desired offset, looks nice and works well , but!
If you slide your finger not horizontally but with a downward slope, then the safari starts to move the entire site (completely the whole, it has its own container, and it moves it) and the site moves down, and during this action it clogs up JS and drawing, it turns out that the timer it works for itself, changes the css of the elements, but this is not visually visible, because at the moment the animation of the safari itself is working (shifting the site down / up), when the safari animation stops, I only see the result of my work ...
Maybe someone has come across this, maybe someone struggled with such a thing.
If you don't understand, let me know and I'll explain.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2012-02-21
@taliban

Thank you all =) Somehow unexpectedly the decision came due to the stupidity of my stupid )
event.originalEvent.preventDefault(); At the start of the slide, all problems are solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question