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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar.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/views/controls/scrollbar/base_scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/base_scroll_bar.cc b/ui/views/controls/scrollbar/base_scroll_bar.cc
index 5e4d6a56fa384d09ee9687b319bf218a14e3ed17..425088ad2c1920d418eae36fa7856af12daffda6 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/base_scroll_bar.cc
@@ -135,8 +135,9 @@ bool BaseScrollBar::OnMousePressed(const ui::MouseEvent& event) {
}
void BaseScrollBar::OnMouseReleased(const ui::MouseEvent& event) {
- SetState(HitTestPoint(event.location()) ?
- CustomButton::STATE_HOVERED : CustomButton::STATE_NORMAL);
+ SetState(HitTestPoint(gfx::ToFlooredPoint(event.location()))
+ ? CustomButton::STATE_HOVERED
+ : CustomButton::STATE_NORMAL);
}
void BaseScrollBar::OnMouseCaptureLost() {

Powered by Google App Engine
This is Rietveld 408576698