How to stop an animation and resume later with jQuery?
For example, I’ve this and i want to avoid the slide-up if the user is dragging another item.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look here jQuery stop()
That’ll do what you need.
Edit: I’ve had a look at the code and I think i’ve got it.
I’ve added some boolean variables to check against to determine whether the a slideUp should occur.