Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ffanny authored Feb 26, 2019
1 parent d576c14 commit d84ac1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions content/browser/renderer_host/render_widget_host_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,13 @@ void RenderWidgetHostImpl::SetPageFocus(bool focused) {
if (IsKeyboardLocked())
UnlockKeyboard();

if (auto* touch_emulator = GetExistingTouchEmulator())
touch_emulator->CancelTouch();
if (auto* touch_emulator = GetExistingTouchEmulator()) {
if (touch_emulator->rfh_limit()) {
if (touch_emulator->rfh_limit()->GetView() == GetView())
touch_emulator->CancelTouch();
} else
touch_emulator->CancelTouch();
}
} else if (keyboard_lock_allowed_) {
LockKeyboard();
}
Expand Down

0 comments on commit d84ac1a

Please sign in to comment.