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

Unified Diff: webkit/glue/webinputevent_win.cc

Issue 9319: Implement WM_MOUSEHWHEEL events.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « chrome/browser/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webinputevent_win.cc
===================================================================
--- webkit/glue/webinputevent_win.cc (revision 4871)
+++ webkit/glue/webinputevent_win.cc (working copy)
@@ -172,22 +172,14 @@
break;
}
- // Windows sends the following messages for tilt-wheel events.
- // * Tilt a mousewheel (left)
- // message == WM_HSCROLL, wparam == SB_LINELEFT (== SB_LINEUP).
- // * Tilt a mousewheel (right)
- // message == WM_HSCROLL, wparam == SB_LINERIGHT (== SB_LINEDOWN).
- // To convert these events to the shift + mousewheel ones, we do not only
- // add a shift but also change the signs of their |wheel_delta| values.
- if (WM_HSCROLL == message) {
Peter Kasting 2008/11/10 19:00:29 I still don't think this can possibly be the right
- key_state |= MK_SHIFT;
- wheel_delta = -wheel_delta;
- }
-
// Use GetAsyncKeyState for key state since we are synthesizing
// the input
get_key_state = GetAsyncKeyState;
} else {
+ // TODO(hbono): we should add a new variable which indicates scroll
+ // direction and remove this key_state hack.
+ if (WM_MOUSEHWHEEL == message)
+ key_state |= MK_SHIFT;
global_x = static_cast<short>(LOWORD(lparam));
global_y = static_cast<short>(HIWORD(lparam));
« no previous file with comments | « chrome/browser/render_widget_host_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698