You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
If there is 4 frames visible, and 9 frames, then the system will only allow you to scroll once and the last frame is alway hidden.
Solution:
Always allow the person to scroll to the very end, but only scroll to the offset that doesn't display empty space.
Diff:
=== modified file 'jcarousellite_1.0.1.js'
--- jcarousellite_1.0.1.js 2013-02-21 23:02:00 +0000
+++ jcarousellite_1.0.1.js 2014-06-25 13:13:31 +0000
@@ -318,8 +318,10 @@
curr = to==itemLength-v+1 ? v+1 : v+o.scroll;
} else curr = to;
} else { // If non-circular and to points to first or last, we just return.
- if(to<0 || to>itemLength-v) return;
- else curr = to;
+ if(to<0) to = 0
+ else if(to>itemLength-v) to = itemLength-v
+ if(curr == to) return;
+ curr = to;
} // If neither overrides it, the curr will still be "to" and we can proceed.
running = true;
The text was updated successfully, but these errors were encountered:
Problem:
If there is 4 frames visible, and 9 frames, then the system will only allow you to scroll once and the last frame is alway hidden.
Solution:
Always allow the person to scroll to the very end, but only scroll to the offset that doesn't display empty space.
Diff:
The text was updated successfully, but these errors were encountered: