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

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: Rebase 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 75e85d01990e84284efb1ae9b5d69943851051a0..cc140a83a0fe91aad15bd9664179b5f3c3186781 100644
--- a/Source/core/input/EventHandler.cpp
+++ b/Source/core/input/EventHandler.cpp
@@ -3540,6 +3540,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());
« no previous file with comments | « no previous file | Source/core/inspector/InspectorInputAgent.cpp » ('j') | public/platform/WebPointerProperties.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698