Gallery: swipe on touch devices - noelboss/featherlight GitHub Wiki
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
Supported:
swipeleft
and swiperight
events, including:
Any jQuery swipe library with
Note: These all require at least jQuery 1.8
Other (non-jQuery) libraries supported:
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 the shortest and simplest of the bunch: jQuery detectSwipe.
Not supported:
- 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.