Bug 1117712 - Update the screen-to-local transform matrix for an input block if the target APZC changes. r=kats

This commit is contained in:
Botond Ballo 2015-01-14 10:16:26 -05:00
parent a53babd8c4
commit bf5d010493

View File

@ -51,6 +51,7 @@ InputBlockState::SetConfirmedTargetApzc(const nsRefPtr<AsyncPanZoomController>&
// note that aTargetApzc MAY be null here.
mTargetApzc = aTargetApzc;
mTransformToApzc = aTargetApzc ? aTargetApzc->GetTransformToThis() : gfx::Matrix4x4();
mOverscrollHandoffChain = (mTargetApzc ? mTargetApzc->BuildOverscrollHandoffChain() : nullptr);
return true;
}