mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
05f6e03fba
commit
512351e417
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user