Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for few items #41

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

ifobos
Copy link

@ifobos ifobos commented Mar 23, 2018

I have added some changes to handle the case in which the number of items is less than the number of items needed to show an infinite scroll, being that if the number of items is smaller then the collection will behave like any other collection upon reaching the latest

also add the license at the beginning of the file (I think this is a good practice) and also delete some blank spaces

seanmurph pushed a commit to fgabelmannjr/ouroboros that referenced this pull request Apr 18, 2018
I manually merged this from:

willowtreeapps#41

Currently, when we try to run the carousel with a single item we’ll crash with the following precondition:

```
precondition(count >= buffer, "Ouroboros requires at least twice the number of items per page to work properly. For best results: a number that is evenly divisible by the number of items per page.")
```

Infinite scrolling is essentially the reason it didn’t work before.  There’s no way to do that with a single item. He added support for non-infinite scroll.

It took a lot of work to manually merge in his changes with Fredricks and with what was different on the origin repo.  There were too many conflicts to do it automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant