Add io.configure and preventDefault for events on the canvas.