I am using jquery animate for the slide. I have an arrow at the end of the slide and given the click event on that arrow. The working of it is to move one item inside the si
Extending H Dog answer. Here is the code that worked for me.
if (isTouchSupported) {
$('#playanimationbtn').off("mouseup");
$('#stopanimationbtn').off("mouseup");
$('#playanimationbtn').off("mousedown");
$('#stopanimationbtn').off("mousedown");
$('#playanimationbtn').off("click");
$('#stopanimationbtn').off("click");
document.getElementById("playanimationbtn").addEventListener("touchend", PlayAnimation);
document.getElementById("stopanimationbtn").addEventListener("touchend", StopAnimation);
} else {
$('#playanimationbtn').off("touchstart");
$('#playanimationbtn').off("touchend");
$('#playanimationbtn').off("touchmove");
$('#playanimationbtn').off("touchend");
$('#playanimationbtn').off("touchleave");
$('#stopanimationbtn').off("touchstart");
$('#stopanimationbtn').off("touchend");
$('#stopanimationbtn').off("touchmove");
$('#stopanimationbtn').off("touchend");
$('#stopanimationbtn').off("touchleave");
document.getElementById("playanimationbtn").addEventListener("click", PlayAnimation);
document.getElementById("stopanimationbtn").addEventListener("click", StopAnimation);
}