Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

jQuery Touchwipe iPhone, iPad, iPod Touch Gestures Event


jQuery Touchwipe - Obtain wipe gesture from touchscreens

Tested with iPhone, iPad and iPod Touch, should also work on Android Platform

The small 1 KB library allows you to obtain the wipe event on an iPhone, iPad or iPod Touch which can be used for example to scroll through an image gallery (see demo below). Should also work with Android touchscreens.

Website: netCU Internet Agency
Project site: jQuery Touchwipe Library (Demo, Usage, Download)

Usage

$("#imagegallery").touchwipe({
    wipeLeft: function() { alert("left"); },
    wipeRight: function() { alert("right"); }
});

Usage together with jQuery Cycle Plugin for image galleries (see also demo)

$(document).ready(function() {
    $('#imagegallery').cycle({
        fx: 'scrollHorz'
    });

    $("#imagegallery").touchwipe({
        wipeLeft: function() {
            $("#imagegallery").cycle("next");
        },
        wipeRight: function() {
            $("#imagegallery").cycle("prev");
        }
    });
});

Downloads



4
Your rating: None Average: 4 (2 votes)