Vanilla 2
Discussions
Activity
Sign In
prettyGallery support
Reg. prettyPhoto gallery swipe support for tablets
thenmozhie1978
April 2014
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
AlexBr
June 2014
+1 from me
sdfdsf
October 2014
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();
});
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
4,649
General
1,277
Showoff your stuff!
13
prettyComments support
18
prettySociable support
40
WP-prettyphoto support
290
prettyCheckboxes support
19
prettyGallery support
118
prettyMobile support
12
prettyPhoto support
2,833
prettyLoader support
16
INK - Support forum
13
Powered by Vanilla