Reland "Implement async touchmove dispatch during scroll"
The patch landed originally in r266470, but was reverted in r266579 due to an
uninitialized variable. The fix was reviewed in crrev.com/253813003.
This implements a touch dispatch model in which touchmove sending is throttled
while a scroll sequence is active and being consumed. Such touchmove's are
marked with |cancelable = false|, indicating to any potential consumers that the
event cannot be prevented from triggering a platform gesture. Throttling limits
the touchmove sending rate during scrolling to 1 event per 200ms.
BUG=346693,367692
NOTRY=true
[email protected]
Review URL: https://codereview.chromium.org/254803012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266585 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index fd2f5d5..0c4f68e8 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1077,7 +1077,7 @@
kInputHandlingTimeThrottlingThresholdMicroseconds;
}
- if (!WebInputEventTraits::IgnoresAckDisposition(input_event->type)) {
+ if (!WebInputEventTraits::IgnoresAckDisposition(*input_event)) {
scoped_ptr<IPC::Message> response(
new InputHostMsg_HandleInputEvent_ACK(routing_id_,
input_event->type,