Index: ui/aura/gestures/gesture_point.cc |
diff --git a/ui/aura/gestures/gesture_point.cc b/ui/aura/gestures/gesture_point.cc |
index 1b0b65a9db7ab14e5ac3f1faf463178e390e6f37..3402e56673331098a3d8e60233bda7736d52a91e 100644 |
--- a/ui/aura/gestures/gesture_point.cc |
+++ b/ui/aura/gestures/gesture_point.cc |
@@ -85,6 +85,11 @@ bool GesturePoint::IsInFlickWindow(const TouchEvent& event) const { |
return IsOverMinFlickSpeed() && event.type() != ui::ET_TOUCH_CANCELLED; |
} |
+bool GesturePoint::DidScroll(const TouchEvent& event) const { |
+ return abs(last_touch_position_.x() - first_touch_position_.x()) > 0 || |
+ abs(last_touch_position_.y() - first_touch_position_.y()) > 0; |
+} |
+ |
bool GesturePoint::IsInClickTimeWindow() const { |
double duration = last_touch_time_ - first_touch_time_; |
return duration >= kMinimumTouchDownDurationInSecondsForClick && |