Bug 1046013 - Fix APZ hit testing when root APZC is overscrolled and has siblings. r=kats

--HG--
extra : rebase_source : a2a0e143c70b3d8c2188ca281d2372d969d8c06b
This commit is contained in:
Botond Ballo 2014-07-30 15:11:20 -04:00
parent 83482f42f3
commit c0d331675b

View File

@ -1026,7 +1026,9 @@ APZCTreeManager::GetTargetAPZC(const ScreenPoint& aPoint, bool* aOutInOverscroll
bool inOverscrolledApzc = false;
for (AsyncPanZoomController* apzc = mRootApzc; apzc; apzc = apzc->GetPrevSibling()) {
target = GetAPZCAtPoint(apzc, point, &inOverscrolledApzc);
if (target) {
// If we hit an overscrolled APZC, 'target' will be nullptr but it's still
// a hit so we don't search further siblings.
if (target || inOverscrolledApzc) {
break;
}
}