mattbryson / TouchSwipe-Jquery-Plugin

TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.
http://labs.rampinteractive.co.uk/touchSwipe/
Other
4.05k stars 1.68k forks source link

not working with wordpress site #328

Closed garethkusky closed 5 years ago

garethkusky commented 6 years ago

I have added jquery.touchSwipe.min.js and can see this is loaded when using browser developer tools. I have a simple div and the below code in an existing working plugin js file, but it doesn't appear to trigger - tested on Firefox and Android chrome browser

 $("#my-picks").swipe( {
    //Generic swipe handler for all directions
    swipe:function(event, direction, distance, duration, fingerCount, fingerData) {
      $(this).text("You swiped " + direction );  
    }
  });

I know for other js scripts $ needs to be changes to jQuery for WordPress. Is there something similar i need to do for this script?

Thanks

dalenguyen commented 6 years ago

It works on my WordPress site. It is really hard to test the behavior on the browser simulator, try it on your phone.

ordin2342 commented 6 years ago

Wordpress with JQuery in no-conflict mode and 3rd party libraries can give you a headache, if you don't enqeue scripts properly.

Hope it helps.

mattbryson commented 5 years ago

closing as nearly a year old. Please feel free to re open if you are still having issues.

garethkusky commented 5 years ago

How is this being closed as nearly a year old? I literally just bought the plugin and reported the issue

Sent from myMail for Android Monday, 17 September 2018, 00:00pm +01:00 from Matt Bryson notifications@github.com :

closing as nearly a year old. Please feel free to re open if you are still having issues. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .