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

What is 33 in the codebase? #4

Open
jabernall24 opened this issue Jun 1, 2021 · 1 comment
Open

What is 33 in the codebase? #4

jabernall24 opened this issue Jun 1, 2021 · 1 comment

Comments

@jabernall24
Copy link
Contributor

What is 33 in Glideshow.swift when it comes to 33 * items!.count. I see this being used many times but not sure what the 33 is doing.

@v15a1
Copy link
Owner

v15a1 commented Jun 1, 2021

Hi @jabernall24, The 33 was used to prevent the users from reaching the end of the slideshow. I had my doubts as well, but upon consulting a developer at Wolt, I was told that they have been doing the same thing. This was all for the purpose of giving the user the "feeling" of an infinitely swiping slideshow to each side, where in reality they aren't. Does that make sense? The slideshow will reset to the initial position when they stop swiping and when the animations stop.

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

No branches or pull requests

2 participants