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

Unified Diff: Source/core/input/EventHandler.cpp

Issue 1192563002: Pass real tilt information to PointerEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Spelling, passing expected.txt Created 5 years, 5 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: Source/core/input/EventHandler.cpp
diff --git a/Source/core/input/EventHandler.cpp b/Source/core/input/EventHandler.cpp
index 04ea9c7ca66c2dff45ccfb07649c78b4a48899a2..2689c1d538698d39507346ad2697ce4a79013947 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -3532,6 +3532,8 @@ void EventHandler::dispatchPointerEventsForTouchEvent(const PlatformTouchEvent&
pointerEventInit.setWidth(touchInfo.adjustedRadius.width());
pointerEventInit.setHeight(touchInfo.adjustedRadius.height());
pointerEventInit.setPressure(point.force());
+ pointerEventInit.setTiltX(point.pointerProperties().tiltX);
+ pointerEventInit.setTiltY(point.pointerProperties().tiltY);
pointerEventInit.setPointerType(PointerTypeStrForTouch);
pointerEventInit.setIsPrimary(m_pointerIdManager.isPrimary(PointerIdManager::PointerTypeTouch, pointerId));
pointerEventInit.setScreenX(point.screenPos().x());

Powered by Google App Engine
This is Rietveld 408576698