mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
83482f42f3
commit
c0d331675b
@ -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