Index: examples/spinning_cube/spinning_cube_app.cc |
diff --git a/examples/spinning_cube/spinning_cube_app.cc b/examples/spinning_cube/spinning_cube_app.cc |
index a239496b8f91f5947950af5a4f08c9c35e3c90d0..1c8d145fdffda7b1e253b1a11b08e6502eedc986 100644 |
--- a/examples/spinning_cube/spinning_cube_app.cc |
+++ b/examples/spinning_cube/spinning_cube_app.cc |
@@ -62,7 +62,7 @@ class SpinningCubeApp : public mojo::ApplicationDelegate, |
void OnEvent(mojo::EventPtr event, |
const mojo::Callback<void()>& callback) override { |
assert(event); |
- if (event->location_data && event->location_data->in_view_location) |
+ if (event->pointer_data.get()) |
gles2_client_->HandleInputEvent(*event); |
callback.Run(); |
} |