mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Fix multiple handling of WM_MOUSEWHEEL messages (issue #1481)
This commit is contained in:
19
patch/patches/hwnd_message_handler_1481.patch
Normal file
19
patch/patches/hwnd_message_handler_1481.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
diff --git hwnd_message_handler.cc hwnd_message_handler.cc
|
||||
index bd2072b..c3fd2ea 100644
|
||||
--- hwnd_message_handler.cc
|
||||
+++ hwnd_message_handler.cc
|
||||
@@ -2649,8 +2649,12 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message,
|
||||
"440919 HWNDMessageHandler::HandleMouseEventInternal6"));
|
||||
|
||||
// Reroute the mouse wheel to the window under the pointer if applicable.
|
||||
- return (ui::RerouteMouseWheel(hwnd(), w_param, l_param) ||
|
||||
- delegate_->HandleMouseEvent(ui::MouseWheelEvent(msg))) ? 0 : 1;
|
||||
+ if (ui::RerouteMouseWheel(hwnd(), w_param, l_param) ||
|
||||
+ delegate_->HandleMouseEvent(ui::MouseWheelEvent(msg))) {
|
||||
+ SetMsgHandled(TRUE);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ return 1;
|
||||
}
|
||||
|
||||
// TODO(vadimt): Remove ScopedTracker below once crbug.com/440919 is fixed.
|
Reference in New Issue
Block a user