| Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| index 78819b9f828fe50153ef1b20151d50e3bfa73dca..eb0b00295e8bf348b8b6580eba9a624c47ad10b9 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -216,8 +216,10 @@ void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location
|
| if (ScrollingCoordinator* coordinator = frameHost().page().scrollingCoordinator())
|
| coordinator->scrollableAreaScrollLayerDidChange(this);
|
|
|
| - if (Document* document = mainFrame()->document())
|
| - document->enqueueScrollEventForNode(document);
|
| + if (!frameHost().settings().inertVisualViewport()) {
|
| + if (Document* document = mainFrame()->document())
|
| + document->enqueueScrollEventForNode(document);
|
| + }
|
|
|
| mainFrame()->loader().client()->didChangeScrollOffset();
|
| valuesChanged = true;
|
|
|