Is it possibile to detect if an element has stopped scrolling in Mobile Safari via Javascript?
I have an element that has momentum scrolling by using -webkit-o
In my case this worked perfectly:
var timer;
$(scrollWrapper).on('scroll',function(e){
if(timer){
clearTimeout(timer);
}
timer = setTimeout(function(){
$(this).trigger('scrollFinished');
}, 55)
})
$(scrollWrapper).on('scrollFinished',function(){
// will be called when momentum scroll is finished
})
Publish 'scrollfinished' event when scroll has stopped.