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:
Marshall Greenblatt 2013-03-05 18:09:41 +00:00
parent 96dc4fb367
commit d70ab2b99c
1 changed files with 2 additions and 2 deletions

View File

@ -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;