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

Unified Diff: ui/events/blink/input_handler_proxy.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: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 6ff1983d7139c16be4b7604726a8c80db40dea7f..0eca95e9f38ab3a68feb66f23ddf51c092f8e30a 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -519,8 +519,11 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
// TODO(davemoore): This should never happen, but bug #326635 showed some
// surprising crashes.
CHECK(input_handler_);
+ bool is_mouse_down =
+ mouse_event.button == blink::WebMouseEvent::Button::kLeft;
input_handler_->MouseMoveAt(gfx::Point(mouse_event.PositionInWidget().x,
- mouse_event.PositionInWidget().y));
+ mouse_event.PositionInWidget().y),
+ is_mouse_down);
return DID_NOT_HANDLE;
}
case WebInputEvent::kMouseLeave: {

Powered by Google App Engine
This is Rietveld 408576698