i have image slider code which was not working on android tablet . but after adding following line it started working on android also.
$(‘#myImageFlow ‘).on(“click touchstart”,”.sliderImage”,touchStart());
but this is giving Error::
Uncaught TypeError: Object .sliderImage has no method ‘apply’,
touchstart() i don’t need but , instead of that if i am giving false then my slider is not working on android.
$(‘#myImageFlow ‘).on(“click touchstart”,”.sliderImage”,touchStart);
you want to give a reference to the function as parameter, what you’re doing with parentheses `touchStart()` is running the function and giving the return value as parameter.
You must be logged in to reply to this topic.