Example of handling a gesture via an event callback instead of a built-in action