Home
last modified time | relevance | path

Searched refs:currentScrollY (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java274 private boolean canSnapAt(int currentScrollY) { in canSnapAt() argument
275 return Math.abs(currentScrollY) <= mMaxTranslation; in canSnapAt()
278 private void moved(final int currentScrollY) { in moved() argument
280 if (currentScrollY <= mSnappedScrolledY) { in moved()
281 if (canSnapAt(currentScrollY)) { in moved()
282 mSnappedScrolledY = currentScrollY; in moved()
287 mTranslationY = currentScrollY; in moved()
289 mTranslationY = currentScrollY - mSnappedScrolledY - mMaxTranslation; in moved()
294 mSnappedScrolledY = currentScrollY - mMaxTranslation; in moved()