Skip to content

to start the animation #1

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

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