Index: ui/events/gestures/gesture_sequence.cc |
diff --git a/ui/events/gestures/gesture_sequence.cc b/ui/events/gestures/gesture_sequence.cc |
index d9a5e68a72a7e1b88fe45b82930634e037ba4fbf..74bc807d68f3acc05d1483c35051832a0fdcfbda 100644 |
--- a/ui/events/gestures/gesture_sequence.cc |
+++ b/ui/events/gestures/gesture_sequence.cc |
@@ -989,9 +989,7 @@ void GestureSequence::AppendScrollGestureEnd(const GesturePoint& point, |
gestures->push_back(CreateGestureEvent( |
GestureEventDetails(ui::ET_SCROLL_FLING_START, |
CalibrateFlingVelocity(railed_x_velocity), |
- CalibrateFlingVelocity(railed_y_velocity), |
- CalibrateFlingVelocity(x_velocity), |
- CalibrateFlingVelocity(y_velocity)), |
+ CalibrateFlingVelocity(railed_y_velocity)), |
location, |
flags_, |
base::Time::FromDoubleT(point.last_touch_time()), |
@@ -1044,8 +1042,6 @@ void GestureSequence::AppendScrollGestureUpdate(GesturePoint& point, |
d.set_y(d.y() * ratio); |
} |
- gfx::Vector2dF o = d; |
- |
if (scroll_type_ == ST_HORIZONTAL) |
d.set_y(0); |
else if (scroll_type_ == ST_VERTICAL) |
@@ -1053,8 +1049,7 @@ void GestureSequence::AppendScrollGestureUpdate(GesturePoint& point, |
if (d.IsZero()) |
return; |
- GestureEventDetails details(ui::ET_GESTURE_SCROLL_UPDATE, |
- d.x(), d.y(), o.x(), o.y()); |
+ GestureEventDetails details(ui::ET_GESTURE_SCROLL_UPDATE, d.x(), d.y()); |
gestures->push_back(CreateGestureEvent( |
details, |
location, |