Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 12bcda166ad2f91c5156c3e8900d717ac7da7470..266b6010ead3cdd01fef00e261daaa375e8751bb 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -893,8 +893,9 @@ ui::TouchStatus RenderWidgetHostViewAura::OnTouchEvent( |
WebKit::WebTouchPoint* point = content::UpdateWebTouchEvent(event, |
&touch_event_); |
- // Forward the touch event only if a touch point was updated. |
- if (point) { |
+ // Forward the touch event only if a touch point was updated, and there's a |
+ // touch-event handler in the page. |
+ if (point && host_->has_touch_handler()) { |
host_->ForwardTouchEvent(touch_event_); |
UpdateWebTouchEventAfterDispatch(&touch_event_, point); |
return DecideTouchStatus(touch_event_, point); |