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

Unified Diff: ui/events/win/events_win.cc

Issue 140653006: Add support for horizontal mouse wheel messages in Windows Desktop Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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: ui/events/win/events_win.cc
===================================================================
--- ui/events/win/events_win.cc (revision 244940)
+++ ui/events/win/events_win.cc (working copy)
@@ -180,6 +180,7 @@
case WM_NCMOUSEMOVE:
return ET_MOUSE_MOVED;
case WM_MOUSEWHEEL:
+ case WM_MOUSEHWHEEL:
return ET_MOUSEWHEEL;
case WM_MOUSELEAVE:
case WM_NCMOUSELEAVE:
@@ -268,7 +269,8 @@
}
gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
- DCHECK(native_event.message == WM_MOUSEWHEEL);
+ DCHECK(native_event.message == WM_MOUSEWHEEL ||
+ native_event.message == WM_MOUSEHWHEEL);
return gfx::Vector2d(0, GET_WHEEL_DELTA_WPARAM(native_event.wParam));
sky 2014/01/17 00:35:18 WOuldn't a horizontal scroll effect the first para
ananta 2014/01/17 00:47:17 Doh. Should have seen that. Works in desktop Chrom
}
« 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