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

Unified Diff: ui/views/widget/widget_hwnd_utils.cc

Issue 133053004: Ensure that trackpad and trackpoint scrolling works on Windows desktop Aura with legacy trackpad dr… (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
Index: ui/views/widget/widget_hwnd_utils.cc
===================================================================
--- ui/views/widget/widget_hwnd_utils.cc (revision 243629)
+++ ui/views/widget/widget_hwnd_utils.cc (working copy)
@@ -133,6 +133,18 @@
default:
NOTREACHED();
}
+
+#if defined(USE_AURA)
+ // Certain trackpad drivers on Windows have bugs where in they don't generate
+ // WM_MOUSEWHEEL messages for the trackpoint and trackpad scrolling gestures
+ // unless there is an entry for Chrome with the class name of the Window.
+ // These drivers check if the window under the trackpoint has the WS_VSCROLL/
+ // WS_HSCROLL style and if yes they generate the legacy WM_VSCROLL/WM_HSCROLL
+ // messages. We add these styles to ensure that trackpad/trackpoint scrolling
+ // work.
+ if (!params.child)
+ *style |= WS_VSCROLL | WS_HSCROLL;
+#endif
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698