Bug 1294998 - In Fennec only show overscroll effect for root content r=botond

This commit is contained in:
Randall Barker
2016-08-19 11:37:23 -07:00
parent bfd63ddac8
commit 7d0ea43d14
4 changed files with 11 additions and 11 deletions

View File

@@ -106,17 +106,17 @@ AndroidContentController::PostDelayedTask(already_AddRefed<Runnable> aTask, int
AndroidBridge::Bridge()->PostTaskToUiThread(Move(aTask), aDelayMs);
}
void
AndroidContentController::UpdateOverscrollVelocity(const float aX, const float aY)
AndroidContentController::UpdateOverscrollVelocity(const float aX, const float aY, const bool aIsRootContent)
{
if (mAndroidWindow) {
if (aIsRootContent && mAndroidWindow) {
mAndroidWindow->UpdateOverscrollVelocity(aX, aY);
}
}
void
AndroidContentController::UpdateOverscrollOffset(const float aX, const float aY)
AndroidContentController::UpdateOverscrollOffset(const float aX, const float aY, const bool aIsRootContent)
{
if (mAndroidWindow) {
if (aIsRootContent && mAndroidWindow) {
mAndroidWindow->UpdateOverscrollOffset(aX, aY);
}
}