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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10535131: Ignore simulated mouse move messages. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 5b781f0682ba9715a2169f0497ceb36fe0af3074..4ecb13d0065a1418c07f11b05c640ce8bfa5056a 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -1801,9 +1801,9 @@ LRESULT RenderWidgetHostViewWin::OnMouseEvent(UINT message, WPARAM wparam,
// Windows sends (fake) mouse messages for touch events. Ignore these since
// we're processing WM_TOUCH elsewhere.
- if (touch_events_enabled_ &&
- (message == WM_LBUTTONDOWN || message == WM_LBUTTONUP ||
- message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) &&
+ if (touch_events_enabled_ && (message == WM_MOUSEMOVE ||
sky 2012/06/12 16:51:51 The msdn docs this comes from mention it not worki
girard 2012/06/15 13:57:28 Tested on Win8. Will test on Win7 on Monday.
+ message == WM_LBUTTONDOWN || message == WM_LBUTTONUP ||
+ message == WM_RBUTTONDOWN || message == WM_RBUTTONUP) &&
(GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) ==
MOUSEEVENTF_FROMTOUCH)
return 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698