Skip to content

Commit

Permalink
Only updateParallax() if not on last slide
Browse files Browse the repository at this point in the history
Fixes issue janheinrichmerker#59 (IndexOutOfBoundsException when scrolling to the end of the intro)
  • Loading branch information
TheDorkKnightRises committed May 31, 2016
1 parent 55c8f4d commit 75e41b6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ public void onPageScrolled(int position, float positionOffset, int positionOffse

updateBackground();
updateViewPositions();
if (position!=getCount())
updateParallax();
updateFullscreen();

Expand Down

0 comments on commit 75e41b6

Please sign in to comment.