Don't overscroll during a fling unless overscrolling is enabled. (bug 1099442, r=botond)

This commit is contained in:
David Anderson 2014-11-14 16:19:00 -08:00
parent d2968dd66e
commit 2182b4bcd7

View File

@ -2011,7 +2011,7 @@ void AsyncPanZoomController::HandleFlingOverscroll(const ParentLayerPoint& aVelo
true /* handoff */))) {
// No one wanted the fling, so we "take it" ourselves by entering an
// overscroll animation starting with the fling's velocity.
if (IsPannable()) {
if (IsPannable() && gfxPrefs::APZOverscrollEnabled()) {
StartOverscrollAnimation(aVelocity);
}
}