Skip to content

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

Description

@kkjusdoit
    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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions