Chromium Code Reviews| Index: content/common/input/web_input_event_traits.cc |
| diff --git a/content/common/input/web_input_event_traits.cc b/content/common/input/web_input_event_traits.cc |
| index 7de816a1a6bc9645e7232f8fdbd8cc6a7d709019..90d80696da1ac51a7c74c5c3ebfa36156ac94f79 100644 |
| --- a/content/common/input/web_input_event_traits.cc |
| +++ b/content/common/input/web_input_event_traits.cc |
| @@ -358,4 +358,14 @@ bool WebInputEventTraits::IgnoresAckDisposition( |
| return false; |
| } |
| +bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) { |
| + if (IgnoresAckDisposition(event.type)) |
| + return true; |
| + |
| + if (WebInputEvent::isTouchEventType(event.type)) |
| + return static_cast<const WebTouchEvent&>(event).cancelable; |
|
Rick Byers
2014/04/22 14:52:59
You're missing a !. Cancelable events must wait f
jdduke (slow)
2014/04/23 19:57:41
Of course, yes!
|
| + |
| + return false; |
| +} |
| + |
| } // namespace content |