Bug 961171 - Have APZ pick up on dynamic changes to 'scrollgrab' property. r=BenWa

This commit is contained in:
Botond Ballo 2014-01-17 14:51:00 -05:00
parent b22c58d0be
commit b055f83375

View File

@ -1570,6 +1570,7 @@ void AsyncPanZoomController::NotifyLayersUpdated(const FrameMetrics& aLayerMetri
mFrameMetrics.mZoom.scale *= parentResolutionChange;
mFrameMetrics.mResolution = aLayerMetrics.mResolution;
mFrameMetrics.mCumulativeResolution = aLayerMetrics.mCumulativeResolution;
mFrameMetrics.mHasScrollgrab = aLayerMetrics.mHasScrollgrab;
// If the layers update was not triggered by our own repaint request, then
// we want to take the new scroll offset.