Skip to content Skip to sidebar Skip to footer

How To Capture Scroll Start Event On Iphone/android

I'm using JQuery with a mobile site to reposition the header nav on scroll in the absence of position:fixed support. That works fine, when the user stops scrolling the header is pl

Solution 1:

I believe jQuery Mobile, can do this. Take a look at the following code:

$(document).bind("scrollstop", function() {

//What occurs when the scrolling stopsalert("You have stopped scrolling");
});

$(document).bind("scrollstart", function() {

//What occurs when the scrolling startsalert("You have started scrolling");

});

Solution 2:

You can start with jQuery Touchwipe : it's a plugin which add new events, wipeleft and wiperight.

It can be easily modified to change horizontal wipes to vertical ones (changing x's to y's) http://plugins.jquery.com/project/Touchwipe-iPhone-iPad-wipe-gesture

It works on Android, IOS and BBOS.

Post a Comment for "How To Capture Scroll Start Event On Iphone/android"