DescriptionDon't route mouse wheel events to transparent children (Legacy_RenderWidgetHostHWND).
Mouse wheel events on Windows would get routed to the window at the current location if it
is in the same process. The message is routed via the SendMessage call. Scrolling via the
wheel on a webpage would end up routing the mouse wheel message received for the main window
to the the legacy window which would then callback into the main window. While the SendMessage
call within the same thread works like a function call, processing the whole callstack twice
causes a lot of jank while scrolling.
Fix is to ignore transparent children in the RerouteMouseWheel function.
BUG=462132
Committed: https://crrev.com/00f5034604fa8073643730299362b2b455e4ada0
Cr-Commit-Position: refs/heads/master@{#341047}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 7 (2 generated)
|