Index: content/browser/renderer_host/input/web_input_event_util.cc |
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc |
index bfba064bdf6889c5778526f601429c194affc65e..6969685147c62e38351ede8c9f03aa26f801db28 100644 |
--- a/content/browser/renderer_host/input/web_input_event_util.cc |
+++ b/content/browser/renderer_host/input/web_input_event_util.cc |
@@ -210,6 +210,12 @@ WebTouchPoint CreateWebTouchPoint(const MotionEvent& event, |
float major_radius = event.GetTouchMajor(pointer_index) / 2.f; |
float minor_radius = event.GetTouchMinor(pointer_index) / 2.f; |
+ |
+ if (minor_radius == 0) |
+ minor_radius = major_radius; |
+ else if (major_radius == 0) |
jdduke (slow)
2015/01/13 15:50:25
This shouldn't happen, should it? |major_radius| s
tdresser
2015/01/13 19:22:08
Done.
|
+ major_radius = minor_radius; |
+ |
float orientation_deg = event.GetOrientation(pointer_index) * 180.f / M_PI; |
DCHECK_GE(major_radius, 0); |
DCHECK_GE(minor_radius, 0); |