My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 34: Better snap-scroll code, i changed it a little.
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  mat...@gmail.com


 
Reported by stijnt...@gmail.com, Oct 25, 2010
Hi,

I changed the snap-scroll piece in the "touchEnd"-function a little bit. 
Now it scrolls back smoother when you drag the scroll out its boundaries.

So as example, if you scroll/drag to right, the scroller goes to the right. And left you see nothing. Because there's no previous page anymore. Then if you release your finger, it scroll's back much too fast. So i made a minimum duration of 350ms. Only if it's dragged out its boundaries.

I hope you can add it to the upcoming update. If it's a good piece of code, maybe there are some conflicts where i don't know about. But it's working for myself anyways.

You can search for: @Stijntjhe in the attached code to find the changes, there are 2 changes.

iscroll.js
19.8 KB   View   Download
Oct 25, 2010
Project Member #1 mat...@gmail.com
Thanks for your contribution. I'll surely consider it for inclusion.
Status: Accepted
Owner: matt3o

Powered by Google Project Hosting