-
Notifications
You must be signed in to change notification settings - Fork 294
Gallery: swipe on touch devices
Marc-André Lafortune edited this page Mar 26, 2014
·
6 revisions
We've looked at the libraries used to do this (e.g. here).
The gallery supports swipe out of the box if any of the following libraries is loaded
If any of these library is present, the navigation buttons are hidden and the swipeleft
and swiperight
events are used instead.
If you don't currently use any "touch" library, we recommend hammer
if you need complex gestures, or else detectSwipe
is the shortest and simplest of the bunch.
- jGestures: should work in theory, but use with caution as events used don't work well apparently
- TouchWipe: Good simple library, but doesn't use events. Use this jQuery port instead.