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

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

Issue 137273008: Merge 245651 "Add support for horizontal mouse wheel messages in..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/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 246169)
+++ 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,8 +269,11 @@
}
gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
- DCHECK(native_event.message == WM_MOUSEWHEEL);
- return gfx::Vector2d(0, GET_WHEEL_DELTA_WPARAM(native_event.wParam));
+ DCHECK(native_event.message == WM_MOUSEWHEEL ||
+ native_event.message == WM_MOUSEHWHEEL);
+ if (native_event.message == WM_MOUSEWHEEL)
+ return gfx::Vector2d(0, GET_WHEEL_DELTA_WPARAM(native_event.wParam));
+ return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0);
}
void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
« 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