Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch slide #7

Closed
iveenano opened this issue Jul 24, 2012 · 1 comment
Closed

Touch slide #7

iveenano opened this issue Jul 24, 2012 · 1 comment

Comments

@iveenano
Copy link

A small contribution with a touch or swipe enabled superslide with jquery.touchwipe.1.1.1.js !

Tested on Ipad 2 . Works like a charm. Hope to see something similar included in your next version

<script src="jquery.touchwipe.1.1.1.js"></script>

Code to add :

$("#slides").touchwipe({
wipeLeft: function() {
$('.next').trigger('click');
},
wipeRight: function() {
$('.prev').trigger('click');
},
min_move_x: 20,
min_move_y: 20,
preventDefaultEvents: true
});

@nicinabox
Copy link
Owner

Thanks @iveenano. This code doesn't belong in the plugin, however. If you want to add touch support like this, add it to your app with superslides included before it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants