How to detect was event called by script or by mousewheel?
For sample this code:
$(window).scroll(function(event){
// detecting here is scroll called by some script( $.scrollTo('#somediv') for sample ) or by mousewheel
});
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.
I usually use an additional parameter and use it in my dynamic calls to that function.
can be triggered like
$('.item').trigger('click',true)