Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: ui/events/ozone/events_ozone.cc

Issue 590523004: [Ozone] Fix DCHECK and check for scroll events as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/events_ozone.cc
diff --git a/ui/events/ozone/events_ozone.cc b/ui/events/ozone/events_ozone.cc
index fb0d1427bd3812547ae6ef7f6372b00d744e7dbf..5478a6287f6db4f90bfbfe680737d1c544110e16 100644
--- a/ui/events/ozone/events_ozone.cc
+++ b/ui/events/ozone/events_ozone.cc
@@ -44,7 +44,7 @@ int GetChangedMouseButtonFlagsFromNative(
const base::NativeEvent& native_event) {
const ui::MouseEvent* event =
static_cast<const ui::MouseEvent*>(native_event);
- DCHECK(event->IsMouseEvent());
+ DCHECK(event->IsMouseEvent() || event->IsScrollEvent());
return event->changed_button_flags();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698