cefclient: Windows: Pass correct mouse click count value (see issue #2727)

This commit is contained in:
Marshall Greenblatt 2020-01-31 16:27:55 -05:00
parent 1da3f71357
commit ed39922f85
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ OsrWindowWin::OsrWindowWin(Delegate* delegate,
last_click_x_(0),
last_click_y_(0),
last_click_button_(MBT_LEFT),
last_click_count_(0),
last_click_count_(1),
last_click_time_(0),
last_mouse_down_on_view_(false) {
DCHECK(delegate_);
@ -583,7 +583,7 @@ void OsrWindowWin::OnMouseEvent(UINT message, WPARAM wParam, LPARAM lParam) {
((currentTime - last_click_time_) > GetDoubleClickTime());
if (cancelPreviousClick &&
(message == WM_MOUSEMOVE || message == WM_MOUSELEAVE)) {
last_click_count_ = 0;
last_click_count_ = 1;
last_click_x_ = 0;
last_click_y_ = 0;
last_click_time_ = 0;