darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Incorrect no of pages in item based navigation. #220

Closed rashidshafique closed 9 years ago

rashidshafique commented 9 years ago

In 'basic' item based navigation, when pages are built I can always see one extra page being built. This happens in both cases when items are even like 2 or when they are in odd quantity like 5. When using item based navigation one expects the number of navigation pages to be same as the items.

I'm not sure if this is a bug as I haven't used sly extensively, just starting out. If there's an option to achieve something I want, id love if somebody could enlighten me!

Thanks

rashidshafique commented 9 years ago

somehow it started working, probably my options weren't setup right