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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 1964523002: Fix clientX/Y properties of touch pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix zoom problem Created 4 years, 7 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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index c7871065c1d6209a30509fedf4a8b7e700d22ac4..0d88fc6d8148197b56ceeb685b710c4e2bfd354d 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -133,7 +133,7 @@ PointerEvent* PointerEventFactory::create(
PointerEvent* PointerEventFactory::create(const AtomicString& type,
const PlatformTouchPoint& touchPoint, PlatformEvent::Modifiers modifiers,
const FloatSize& pointRadius,
- const FloatPoint& pagePoint)
+ const FloatPoint& clientPoint)
{
const PlatformTouchPoint::TouchState pointState = touchPoint.state();
@@ -157,8 +157,8 @@ PointerEvent* PointerEventFactory::create(const AtomicString& type,
pointerEventInit.setTiltY(touchPoint.pointerProperties().tiltY);
pointerEventInit.setScreenX(touchPoint.screenPos().x());
pointerEventInit.setScreenY(touchPoint.screenPos().y());
- pointerEventInit.setClientX(pagePoint.x());
- pointerEventInit.setClientY(pagePoint.y());
+ pointerEventInit.setClientX(clientPoint.x());
+ pointerEventInit.setClientY(clientPoint.y());
pointerEventInit.setButton(pointerPressedOrReleased ? LeftButton: NoButton);
pointerEventInit.setPressure(getPointerEventPressure(
touchPoint.force(), pointerEventInit.buttons()));

Powered by Google App Engine
This is Rietveld 408576698