Index: cc/CCLayerTreeHost.cpp |
diff --git a/cc/CCLayerTreeHost.cpp b/cc/CCLayerTreeHost.cpp |
index f2369632ddfb3b09a1daef96a9ab1a5afc3fd445..e126f15e6bf97f0535a94fd7b4220fa447126b91 100644 |
--- a/cc/CCLayerTreeHost.cpp |
+++ b/cc/CCLayerTreeHost.cpp |
@@ -638,7 +638,7 @@ void CCLayerTreeHost::applyScrollAndScale(const CCScrollAndScaleSet& info) |
if (layer == rootScrollLayer) |
rootScrollDelta += info.scrolls[i].scrollDelta; |
else |
- layer->scrollBy(info.scrolls[i].scrollDelta); |
+ layer->setScrollPosition(layer->scrollPosition() + info.scrolls[i].scrollDelta); |
} |
if (!rootScrollDelta.isZero() || info.pageScaleDelta != 1) |
m_client->applyScrollAndScale(rootScrollDelta, info.pageScaleDelta); |