Index: third_party/WebKit/Source/web/DevToolsEmulator.cpp |
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
index 83c90346f44daede4eb39459b62284d241088f6f..65527e56ad5d310e46ec8ec76ea516648561ba8c 100644 |
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp |
@@ -499,8 +499,8 @@ bool DevToolsEmulator::handleInputEvent(const WebInputEvent& inputEvent) { |
frameView, static_cast<const WebGestureEvent&>(inputEvent)); |
float pageScaleFactor = page->pageScaleFactor(); |
if (gestureEvent.type() == PlatformEvent::GesturePinchBegin) { |
- m_lastPinchAnchorCss = wrapUnique( |
- new IntPoint(frameView->scrollPosition() + gestureEvent.position())); |
+ m_lastPinchAnchorCss = wrapUnique(new IntPoint(roundedIntPoint( |
+ gestureEvent.position() + frameView->scrollOffset()))); |
m_lastPinchAnchorDip = wrapUnique(new IntPoint(gestureEvent.position())); |
m_lastPinchAnchorDip->scale(pageScaleFactor, pageScaleFactor); |
} |