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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar_thumb.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_thumb.cc
diff --git a/ui/views/controls/scrollbar/base_scroll_bar_thumb.cc b/ui/views/controls/scrollbar/base_scroll_bar_thumb.cc
index 2e4064092ef73c7342637050a2ed6bd7016fbc3d..a063621fe5aad20405af58ec99990d6fb7a97c77 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar_thumb.cc
+++ b/ui/views/controls/scrollbar/base_scroll_bar_thumb.cc
@@ -110,8 +110,9 @@ bool BaseScrollBarThumb::OnMouseDragged(const ui::MouseEvent& event) {
}
void BaseScrollBarThumb::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 BaseScrollBarThumb::OnMouseCaptureLost() {

Powered by Google App Engine
This is Rietveld 408576698