Skip to content

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

@kkjusdoit

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?

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