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

Unified Diff: content/browser/renderer_host/input/touch_emulator.cc

Issue 2700623003: Make sure that the pressure is always 0 for pointerup events (Closed)
Patch Set: pressure 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
« no previous file with comments | « no previous file | content/common/input/synthetic_web_input_event_builders.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index b30370b59eb688bdafb211a5471a9db0ea068045..2991879d50ac1c798c0a295b4666fb641fb1b769 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -461,7 +461,7 @@ void TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
point.id = 0;
point.radiusX = 0.5f * cursor_size_.width();
point.radiusY = 0.5f * cursor_size_.height();
- point.force = 1.f;
+ point.force = eventType == WebInputEvent::TouchEnd ? 0.f : 1.f;
point.rotationAngle = 0.f;
point.position.x = mouse_event.x;
point.screenPosition.x = mouse_event.globalX;
« no previous file with comments | « no previous file | content/common/input/synthetic_web_input_event_builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698