Skip to content

Commit

Permalink
make bottom scroll detection more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Aug 25, 2012
1 parent 589a963 commit 9ccde80
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -32,7 +32,12 @@ public BottomScrollPanel()
public void onScroll(ScrollEvent event)
{
scrolledToBottom_ =
getVerticalScrollPosition() == getMaximumVerticalScrollPosition();

(getVerticalScrollPosition() ==
getMaximumVerticalScrollPosition() ||

((getVerticalScrollPosition() + getOffsetHeight()) ==
getElement().getScrollHeight()));
}
});
}
Expand Down

0 comments on commit 9ccde80

Please sign in to comment.