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

jQuery-Waterwheel-Carousel: How to add touch events features for ipad support #8

Open
vjaygaikwad opened this issue Oct 22, 2012 · 6 comments

Comments

@vjaygaikwad
Copy link

Any body please i want to add touch events features for ipad support.

@bkosborne
Copy link
Owner

Which touch events? The click events for moving the carousel to a different item are already supported. How would a touch event be useful here? To slide your finger and have the carousel move?

@Darknior
Copy link

Yes, i think he speak about a drag event.

@vjaygaikwad
Copy link
Author

yes, in latest version can I get carousel move with slide ?

@jamesalmeida
Copy link

I am trying to figure this out too so it will be more useable on mobile devices.

@zdanovskiymihail
Copy link

zdanovskiymihail commented Apr 20, 2016

I also faced with this problem. The solution I found is binding carousel api functions with jquery swipe events:

<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> 
<!-- we need juery.mobile for swipe events. You can replace jquery version with yours. -->

<script type="text/javascript">
    $(document).ready(function() {
        var carousel = $("#carousel").waterwheelCarousel(/* your options here*/);
        $("#carousel").on("swipeleft",function(){
          carousel.next();
        });
        $("#carousel").on("swiperight",function(){
          carousel.prev();
        });
      });
</script>

Where carousel is id of your carousel block.

@vjakovlev
Copy link

vjakovlev commented Feb 27, 2018

@zdanovskiymihail

Where carousel is id of your carousel block.

Can you explain more please? I don't get it :D

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

6 participants