Commit a7738c9d authored by dnicoara's avatar dnicoara Committed by Commit bot

[Ozone] Fix DCHECK and check for scroll events as well

Scroll events are mouse events as well. On debug builds this DCHECK
would otherwise get triggered.

BUG=none
NOTRY=true

Review URL: https://codereview.chromium.org/590523004

Cr-Commit-Position: refs/heads/master@{#295772}
parent 3f6657e4
...@@ -44,7 +44,7 @@ int GetChangedMouseButtonFlagsFromNative( ...@@ -44,7 +44,7 @@ int GetChangedMouseButtonFlagsFromNative(
const base::NativeEvent& native_event) { const base::NativeEvent& native_event) {
const ui::MouseEvent* event = const ui::MouseEvent* event =
static_cast<const ui::MouseEvent*>(native_event); static_cast<const ui::MouseEvent*>(native_event);
DCHECK(event->IsMouseEvent()); DCHECK(event->IsMouseEvent() || event->IsScrollEvent());
return event->changed_button_flags(); return event->changed_button_flags();
} }
......
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