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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.cc

Issue 2782733002: MouseWheelEventQueue sends scrollEnd right away when latching is disabled. (Closed)
Patch Set: review comments addressed. Created 3 years, 9 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: content/browser/renderer_host/input/mouse_wheel_event_queue.cc
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
index 0afa75443d33b27f7b795e6310d3da073e42873b..65f3b62ec049ae41d0f830e18e35389fe61314fd 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -246,11 +246,8 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
// crbug.com/526463 is fully implemented.
SendScrollEnd(scroll_update, true);
} else if (!has_phase_info) {
- scroll_end_timer_.Start(
- FROM_HERE,
- base::TimeDelta::FromMilliseconds(scroll_transaction_ms_),
- base::Bind(&MouseWheelEventQueue::SendScrollEnd,
- base::Unretained(this), scroll_update, false));
+ DCHECK_EQ(0, scroll_transaction_ms_);
+ SendScrollEnd(scroll_update, false);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698