diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 04:46:43 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 04:46:43 +0000 |
commit | d86b9733dd82eaf432519ef6b63a7c1fffaff23d (patch) | |
tree | b4471fef8724179007d45d577af86d57aa728e19 /webkit | |
parent | 1d2886aeac0f81c1e1ee1dba45d423ca9846c57a (diff) | |
download | chromium_src-d86b9733dd82eaf432519ef6b63a7c1fffaff23d.zip chromium_src-d86b9733dd82eaf432519ef6b63a7c1fffaff23d.tar.gz chromium_src-d86b9733dd82eaf432519ef6b63a7c1fffaff23d.tar.bz2 |
Fixes a regression caused by my change r5095.
This change fixes a regression problem caused by my change r5095. ThinkPad touchpads (or trackpoints) send WM_HSCROLL messages and we still need a hack for WM_HSCROLL messages.
Review URL: http://codereview.chromium.org/10295
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webinputevent_win.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/glue/webinputevent_win.cc b/webkit/glue/webinputevent_win.cc index a359db9..9bf04e0 100644 --- a/webkit/glue/webinputevent_win.cc +++ b/webkit/glue/webinputevent_win.cc @@ -171,6 +171,17 @@ WebMouseWheelEvent::WebMouseWheelEvent(HWND hwnd, UINT message, WPARAM wparam, break; } + // Touchpads (or trackpoints) send the following messages in scrolling + // horizontally. + // * Scrolling left + // message == WM_HSCROLL, wparam == SB_LINELEFT (== SB_LINEUP). + // * Scrolling right + // message == WM_HSCROLL, wparam == SB_LINERIGHT (== SB_LINEDOWN). + if (WM_HSCROLL == message) { + key_state |= MK_SHIFT; + wheel_delta = -wheel_delta; + } + // Use GetAsyncKeyState for key state since we are synthesizing // the input get_key_state = GetAsyncKeyState; |