zurb / orbit

454 stars 96 forks source link

Added iOS horizontal swipe gesture support #100

Open matehat opened 12 years ago

matehat commented 12 years ago

I added an option swipe: {true|false} that, when set to true, allows the user of a iOS device to swipe through slides using one finger.

knewter commented 12 years ago

+1 on this, I'm definitely applying the patch for my own project :)

benmort commented 12 years ago

great work ill be using this for my next slider! cheers

farser commented 12 years ago

Call me daft but I can't for the life of me work out how to enable swipe.

I also can't seem to find working examples of this in action anywhere. The version available here at git and at foundation.zurb.com don't swipe on my iphone 4s

hoping someone can point me in the right direction. thanks

matehat commented 12 years ago

Hey,

You won't find it there because Zurb hasn't merged in this pull request, but you can find a working demo at : http://www.matehat.com/orbit/demo/demo.html

If you want to enable it for your project, you'd need to use my branch.

The first orbit is swipe-enabled and second isn't.

I also implemented this on http://storm.io, although not as a Zurb Orbit widget.

Good luck!

farser commented 12 years ago

Excellent! Thanks for that