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

Unified Diff: ui/base/gestures/gesture_sequence.cc

Issue 10702096: Corrected issues with queued touch events. This fixes gestures in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More clean-up. Created 8 years, 5 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: ui/base/gestures/gesture_sequence.cc
diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc
index 9892fdce2451038d0c28c843777b5bf695fdaac9..b778bf19ffe988b145b0f88053e7e9d999da6411 100644
--- a/ui/base/gestures/gesture_sequence.cc
+++ b/ui/base/gestures/gesture_sequence.cc
@@ -235,7 +235,7 @@ GestureSequence::Gestures* GestureSequence::ProcessTouchEventForGesture(
GesturePoint* new_point = &points_[event.GetTouchId()];
// We shouldn't be able to get two PRESSED events from the same
// finger without either a RELEASE or CANCEL in between.
- DCHECK(!points_[event.GetTouchId()].in_use());
+ DCHECK(!new_point->in_use());
new_point->set_point_id(point_count_++);
new_point->set_touch_id(event.GetTouchId());
}

Powered by Google App Engine
This is Rietveld 408576698