Index: mojo/examples/sample_app/sample_app.cc |
diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc |
index 222205a3baa76a25b4904612ad3e8fa5f1b9526c..ceebd61b88b5fa4541066af6cfd167bc03c53e89 100644 |
--- a/mojo/examples/sample_app/sample_app.cc |
+++ b/mojo/examples/sample_app/sample_app.cc |
@@ -63,7 +63,7 @@ class SampleApp : public mojo::ApplicationDelegate, |
virtual void OnEvent(mojo::EventPtr event, |
const mojo::Callback<void()>& callback) MOJO_OVERRIDE { |
assert(event); |
- if (event->location) |
+ if (event->location_data && event->location_data->in_view_location) |
gles2_client_->HandleInputEvent(*event); |
callback.Run(); |
} |