| 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 ed307bcc32112ff280381e922aa58428aaf1f4b5..81d106c54569a85a36e3e301e3c6f5abe04a067a 100644
|
| --- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
| +++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
| @@ -34,13 +34,15 @@ class QueuedWebMouseWheelEvent : public MouseWheelEventWithLatencyInfo {
|
| };
|
|
|
| MouseWheelEventQueue::MouseWheelEventQueue(MouseWheelEventQueueClient* client,
|
| - int64_t scroll_transaction_ms)
|
| + bool enable_scroll_latching)
|
| : client_(client),
|
| needs_scroll_begin_(true),
|
| needs_scroll_end_(false),
|
| - scroll_transaction_ms_(scroll_transaction_ms),
|
| + enable_scroll_latching_(enable_scroll_latching),
|
| scrolling_device_(blink::WebGestureDeviceUninitialized) {
|
| DCHECK(client);
|
| + scroll_transaction_ms_ =
|
| + enable_scroll_latching_ ? kDefaultWheelScrollLatchingTransactionMs : 0;
|
| }
|
|
|
| MouseWheelEventQueue::~MouseWheelEventQueue() {
|
|
|