This example uses more complex event handlers and the zEvent object. Also, the preventDefault() method is used to prevent the running flag from being set to true.