jquery mobile multiple event firing on swipeleft and swiperight events.

I have been developing a mobile website using jQuery mobile.

This website have a carousel slide show, which should work with swipe left and swipe right events.

Interestingly, I found that, swipeleft and swiperight events are triggering multiple times. And this results in an unpredicted behaviors on the carousel slide show.To prevent the this multiple event firing, I used the jQuery method stopImmediatePropagation();

My final code looks like

One Reply to “jquery mobile multiple event firing on swipeleft and swiperight events.”

Leave a Reply

Your email address will not be published. Required fields are marked *