Reg. prettyPhoto gallery swipe support for tablets
  • Hi,
    I am using prettyPhoto gallery 3.1.5 in our project. In this i need swipe support for tablets.Can you please tell me how to implement that.
    Thanks & Regards,
    Thenmozhi.E
  • +1 from me
  • I implemented swipe functionalty using jquery mobile. Just call jquery mobile library and do rest of the things,

    @media (max-width: 600px) {
    .pp_hoverContainer {display:none !important;}
    }
    ---------------------------------------

    $(document).ready(function(){
    function setupBox() {
    $("a[rel^='prettyPhoto']").prettyPhoto({
    social_tools: false,
    theme:'dark_rounded',
    changepicturecallback: function() {
    setupSwipe();
    }
    });
    }
    function setupSwipe() {
    $("img").swipeleft(function() {
    $.prettyPhoto.changePage('next');
    });
    $("img").swiperight(function() {
    $.prettyPhoto.changePage('previous');
    });
    }
    setupBox();
    });

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter