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

Unified Diff: third_party/WebKit/Source/platform/WebTouchEvent.cpp

Issue 2624783002: Fix movementX/Y attributes for touch pointer events (Closed)
Patch Set: Wrap ForwardTouchEventWithLatencyInfo to always reset points Created 3 years, 10 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/platform/WebTouchEvent.cpp
diff --git a/third_party/WebKit/Source/platform/WebTouchEvent.cpp b/third_party/WebKit/Source/platform/WebTouchEvent.cpp
index 3e58320b68272dcdd59d08f7b8fdfaf89d582cfe..0ef9aca1c52621a14ac0310fead724393d10868d 100644
--- a/third_party/WebKit/Source/platform/WebTouchEvent.cpp
+++ b/third_party/WebKit/Source/platform/WebTouchEvent.cpp
@@ -26,6 +26,8 @@ WebTouchPoint WebTouchEvent::touchPointInRootFrame(unsigned point) const {
WebTouchPoint transformedPoint = touches[point];
transformedPoint.radiusX /= m_frameScale;
transformedPoint.radiusY /= m_frameScale;
+ transformedPoint.movementX /= m_frameScale;
+ transformedPoint.movementY /= m_frameScale;
transformedPoint.position.x =
(transformedPoint.position.x / m_frameScale) + m_frameTranslate.x;
transformedPoint.position.y =

Powered by Google App Engine
This is Rietveld 408576698