Skip to content

Commit

Permalink
improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Rovkin committed Feb 11, 2015
1 parent 06f0b97 commit a79c625
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public void onScrolled(final RecyclerView recyclerView, final int dx, final int
{
detectScrollDown(dy);
changeAbState();
if (customRelativeWrapper != null)
totalScroll += dy;
if (customRelativeWrapper != null && !headerOutOfVisibleRange())
{
totalScroll += dy;
translateHeader(totalScroll);
}
changeVisibilityHeader();
Expand Down

0 comments on commit a79c625

Please sign in to comment.