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

Unified Diff: ash/wm/system_gesture_event_filter.cc

Issue 10533029: Fix TAP_DOWN gesture event: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed build Created 8 years, 6 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/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_gesture_event_filter.cc
diff --git a/ash/wm/system_gesture_event_filter.cc b/ash/wm/system_gesture_event_filter.cc
index 99945eab8db154bd47d5d8cd69142e3d98c8321a..e7800fee1b9fa031daabaafdd3566620d008f4fc 100644
--- a/ash/wm/system_gesture_event_filter.cc
+++ b/ash/wm/system_gesture_event_filter.cc
@@ -260,7 +260,7 @@ class SystemPinchHandler {
return SYSTEM_GESTURE_END;
switch (event.type()) {
- case ui::ET_GESTURE_TAP_UP: {
+ case ui::ET_GESTURE_END: {
if (event.delta_x() > kSystemPinchPoints)
break;
@@ -535,7 +535,7 @@ ui::GestureStatus SystemGestureEventFilter::PreHandleGestureEvent(
ClearGestureHandlerForWindow(system_target);
return ui::GESTURE_STATUS_CONSUMED;
} else {
- if (event->type() == ui::ET_GESTURE_TAP_DOWN &&
+ if (event->type() == ui::ET_GESTURE_BEGIN &&
event->delta_x() >= kSystemPinchPoints) {
pinch_handlers_[system_target] = new SystemPinchHandler(system_target);
system_target->AddObserver(this);
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698