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

give some explanation about how get first index and position? #60

Open
kkjusdoit opened this issue Jan 12, 2023 · 1 comment
Open

give some explanation about how get first index and position? #60

kkjusdoit opened this issue Jan 12, 2023 · 1 comment

Comments

@kkjusdoit
Copy link

    var p = position - scrollOffset / cellInterval; 
    var firstIndex = Mathf.CeilToInt(p);
    var firstPosition = (Mathf.Ceil(p) - p);// * cellInterval; 

Hi @setchi I'm new learning your code, I have problem to understand above caculation, why this can get first index and position?

@kkjusdoit
Copy link
Author

how do you design the formula

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

1 participant