Commit 3768db29 authored by pkotwicz@chromium.org's avatar pkotwicz@chromium.org

Ignores synthetic mouse events in ImmersiveModeControllerAsh::OnMouseEvent()....

Ignores synthetic mouse events in ImmersiveModeControllerAsh::OnMouseEvent(). Counterintuitively, we get synthetic mouse events when aura::client::CursorClient::IsMouseEventsEnabled() == false.

BUG=252230
Test=Manual, see bug

Review URL: https://chromiumcodereview.appspot.com/17514009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208097 0039d316-1c4b-4281-b951-d872f2087c98
parent d680c4cb
......@@ -461,6 +461,11 @@ void ImmersiveModeControllerAsh::OnMouseEvent(ui::MouseEvent* event) {
if (!enabled_)
return;
// Counterintuitively, we can still get synthesized mouse moves when
// aura::client::CursorClient::IsMouseEventsEnabled() == false.
if (event->flags() & ui::EF_IS_SYNTHESIZED)
return;
if (event->type() != ui::ET_MOUSE_MOVED &&
event->type() != ui::ET_MOUSE_PRESSED &&
event->type() != ui::ET_MOUSE_RELEASED &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment