You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Win32 window which contains a WebView2 browser instance. I now want to query the hosts mouse position to determine if it is over my window via a call to SetWindowsHookEx(WH_MOUSE, mouseProc, __module_handle, 0).
Inside of mouseProc, I have tried both GetClientRect and GetWindowRect to retrieve the Window's position and then checked the result against GetCursorPos. In the Case of GetClientRect I transformed the coordinates appropriately.
All of these function deliver the expected results except on my WebView2 Browser window where the mouseProc callback stops working after I move the mouse over the few pixels of invisible border around the window to inside the window.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
131.0.2903.112
SDK Version
1.0.2739.15
Framework
Win32
Operating System
Windows 11
OS Version
22631.4751
Repro steps
Use Win32 to create a window (size, position and the rest does not matter as long as its visible)
Initiate a plain WebView2 Browser Instance
Use SetWindowsHookEx(WH_MOUSE, mouseProc, __module_handle, 0) to register the mouseProc callback
Use GetClientRect and GetCursorPos and print them to stdout
Start the application and move the mouse cursor over the window
As soon as the mouse is over the WebView2 window the mouseProc Callback stops being called. The last recorder positon from GetCursorPos is the last pixel of the invisible border of the window.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
I have a Win32 window which contains a WebView2 browser instance. I now want to query the hosts mouse position to determine if it is over my window via a call to
SetWindowsHookEx(WH_MOUSE, mouseProc, __module_handle, 0)
.Inside of
mouseProc
, I have tried bothGetClientRect
andGetWindowRect
to retrieve the Window's position and then checked the result againstGetCursorPos
. In the Case ofGetClientRect
I transformed the coordinates appropriately.All of these function deliver the expected results except on my WebView2 Browser window where the mouseProc callback stops working after I move the mouse over the few pixels of invisible border around the window to inside the window.
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
131.0.2903.112
SDK Version
1.0.2739.15
Framework
Win32
Operating System
Windows 11
OS Version
22631.4751
Repro steps
SetWindowsHookEx(WH_MOUSE, mouseProc, __module_handle, 0)
to register themouseProc
callbackGetClientRect
andGetCursorPos
and print them to stdoutAs soon as the mouse is over the WebView2 window the
mouseProc
Callback stops being called. The last recorder positon fromGetCursorPos
is the last pixel of the invisible border of the window.Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: