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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2931703002: Don't fade in overlay scrollbar when user interacting the content under scrollbar. (Closed)
Patch Set: Created 3 years, 6 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: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 150bbccb5070bcf60a176c99b155fd3e4d6b783d..d1876f91772a6316227b29520cf52e3e9c2ef0cb 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3487,7 +3487,8 @@ void LayerTreeHostImpl::MouseUp() {
}
}
-void LayerTreeHostImpl::MouseMoveAt(const gfx::Point& viewport_point) {
+void LayerTreeHostImpl::MouseMoveAt(const gfx::Point& viewport_point,
+ bool is_mouse_down) {
gfx::PointF device_viewport_point = gfx::ScalePoint(
gfx::PointF(viewport_point), active_tree_->device_scale_factor());
LayerImpl* layer_impl =
@@ -3530,7 +3531,7 @@ void LayerTreeHostImpl::MouseMoveAt(const gfx::Point& viewport_point) {
if (!new_animation_controller)
return;
- new_animation_controller->DidMouseMove(device_viewport_point);
+ new_animation_controller->DidMouseMove(device_viewport_point, is_mouse_down);
}
void LayerTreeHostImpl::MouseLeave() {

Powered by Google App Engine
This is Rietveld 408576698