iScroll snap feature skips elements on iOS

62 views
Skip to first unread message

davidfarinaofficial

unread,
Sep 18, 2015, 8:55:55 AM9/18/15
to iScroll
Hello

First, i want to thank you guys for making this super library. It works waay better than anything else available!

Now to my problem:
I have done a website that bases fully on iscroll. Now everything works great but on iOS (maybe generally touch devices) when you scroll down and make a long swipe with the finger it scrolls more than one element. In other words, the scroll detection is too sensitive and iscroll thinks you want to scroll more than one element.

Is there a solution/config where you can set the touch sensitivity?

Here the site so you can see what i mean:
http://davidfarina.com

David Webb

unread,
Feb 24, 2016, 5:57:13 PM2/24/16
to iScroll
So my suggestion is to tack onto the scrollStart event and write a custom function that uses the method "goToPage()" to you can 100% control what the user experiences.

Something like:

myScroll.on('scrollStart', function() {
   
var currPage = myScroll.currentPage.pageX + 1;
   myScroll
.goToPage(currPage, 0, 1000);
});

Then apply logic to determine which way they are trying to scroll.  IDK, maybe a start?
Reply all
Reply to author
Forward
0 new messages