Windows: cefclient: Fix delivery of mouse up events with offscreen rendering example (issue #902).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1126 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
96dc4fb367
commit
d70ab2b99c
|
@ -493,8 +493,8 @@ LRESULT CALLBACK OSRWindow::WndProc(HWND hWnd, UINT message,
|
|||
int x = GET_X_LPARAM(lParam);
|
||||
int y = GET_Y_LPARAM(lParam);
|
||||
CefBrowserHost::MouseButtonType btnType =
|
||||
(message == WM_LBUTTONDOWN ? MBT_LEFT : (
|
||||
message == WM_RBUTTONDOWN ? MBT_RIGHT : MBT_MIDDLE));
|
||||
(message == WM_LBUTTONUP ? MBT_LEFT : (
|
||||
message == WM_RBUTTONUP ? MBT_RIGHT : MBT_MIDDLE));
|
||||
if (browser.get()) {
|
||||
CefMouseEvent mouse_event;
|
||||
mouse_event.x = x;
|
||||
|
|
Loading…
Reference in New Issue