Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: tweaks and docs Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 6cd9a7c9aafeb68509138f3fc34b017efa2964e8..01432b311af86276cb5599dd34e7772ccef73a42 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -370,8 +370,7 @@ void PointerEventManager::dispatchTouchPointerEvents(
FloatPoint pagePoint = touchInfo.targetFrame->view()->rootFrameToContents(
touchInfo.point.pos());
float scaleFactor = 1.0f / touchInfo.targetFrame->pageZoomFactor();
- FloatPoint scrollPosition =
- touchInfo.targetFrame->view()->scrollPosition();
+ FloatPoint scrollPosition(touchInfo.targetFrame->view()->scrollOffset());
FloatPoint framePoint = pagePoint.scaledBy(scaleFactor);
framePoint.moveBy(scrollPosition.scaledBy(-scaleFactor));
PointerEvent* pointerEvent = m_pointerEventFactory.create(

Powered by Google App Engine
This is Rietveld 408576698