nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Snap borders capability #35

Closed Jeff0029 closed 9 years ago

Jeff0029 commented 9 years ago

Added clamping values for currentLandPos if the option snap_borders is true to restrict it to the borders of the itemslider.

There is also now a new public variables that refreshes when the list of items changes called 'allSlidesWidth'. This variable is needed to know the max value that the user can swipe right. Here is an image explaining the process. bordersnapingmethod

NOTES:

nir9 commented 9 years ago

Thank you!

closes #34

Jeff0029 commented 9 years ago

You are welcome!

And thank you for being very responsive and having a developper friendly app :).

Oh and don't forget to update your doc lol

Le mardi 15 septembre 2015, nir9 notifications@github.com a écrit :

Thank you!

closes #34 https://github.com/itemslide/itemslide.github.io/issues/34

— Reply to this email directly or view it on GitHub https://github.com/itemslide/itemslide.github.io/pull/35#issuecomment-140518402 .


Jean-François Vienneau jeanfrancoisvienneau@gmail.com http://jeanfrancoisvienneau@gmail.com/ Linked-in: http://www.linkedin.com/in/jfvienneau Website: jfvienneau.com Telephone: (613) 796-0922