The tap event always triggers after swipe event is triggered in PC browsers using jQuery Mobile.
This will not happens in iPhone etc. Only swipe will be occured in iPhones.
- $('.ui-page-active').live('tap', function () {
- alert('tap');
- }
-
- $('.ui-page-active').live('swiperight', function () {
- alert('swiperight');
- }
Above code will produce two alert when one swipe is occured in PC browser.
How to make it only trigger one event(Only swipe, not tap event)?