cubiq / 2-way-iScroll

Horizontal snap scroll (carousel) + vertical free scroll on mobile webkit using iScroll
MIT License
116 stars 27 forks source link

scrollToPage speed doesn't take integer value 0 #2

Open braaam opened 13 years ago

braaam commented 13 years ago

Instead of applying the 0 value and displaying the page instantly, it treats it as false and applies the default speed. Solution is to check (===) for this.