Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7555372f authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am 85e5ed63: Merge "Account for translationY when targeting the fast scroller...

am 85e5ed63: Merge "Account for translationY when targeting the fast scroller via touch" into klp-dev

* commit '85e5ed63':
  Account for translationY when targeting the fast scroller via touch
parents 0cdab579 85e5ed63
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -42,7 +42,6 @@ import android.view.ViewConfiguration;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroupOverlay;
import android.widget.AbsListView.OnScrollListener;

import com.android.internal.R;

/**
@@ -1381,7 +1380,10 @@ class FastScroller {
    }

    private boolean isPointInsideY(float y) {
        return y >= mThumbImage.getTop() && y <= mThumbImage.getBottom();
        final float offset = mThumbImage.getTranslationY();
        final float top = mThumbImage.getTop() + offset;
        final float bottom = mThumbImage.getBottom() + offset;
        return y >= top && y <= bottom;
    }

    /**