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

Unified Diff: ui/message_center/views/message_center_view.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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
Index: ui/message_center/views/message_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index 27b4978b0600adcf3def629504265d126c330f87..ddda9940b97a168e055a28a00a89a41f7d8d0b03 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -808,7 +808,7 @@ bool MessageCenterView::OnMouseWheel(const ui::MouseWheelEvent& event) {
// the scroll happens only when the focus is on the ScrollView. The
// notification center will allow the scrolling even when the focus is on
// the buttons.
- if (scroller_->bounds().Contains(event.location()))
+ if (scroller_->bounds().Contains(gfx::ToFlooredPoint(event.location())))
return scroller_->OnMouseWheel(event);
return views::View::OnMouseWheel(event);
}

Powered by Google App Engine
This is Rietveld 408576698