Skip to content

to start the animation #1

@rodrigoGA

Description

@rodrigoGA

I had a problem. When i scroll the animation not start correctly.
solve it by replacing in private boolean animationNeedToBeRunOnChild(int[] childLocationOnScreen) this

if (isVerticalScrollView) {
if (childLocationOnScreen[1] <= rootView.getBottom()) {
result = true;
}

for this

    if (isVerticalScrollView) {
        int heightPx = rootView.getContext().getResources().getDisplayMetrics().heightPixels;
        if (childLocationOnScreen[1] <= heightPx ) {
            result = true;
        }

sorry for my English, and thanks

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