HTML5 Canvas Multi-Event Binding Tutorial

To bind multiple events to a single handler with KineticJS, we can use the on() method and pass in a space delimited string containing multiple event types.

Instructions: Mouseover, mousedown, and mouseup over the circle to observe that the function bound to the circle is executed for each event.

Open in new window

Code Editor

Modified on April 9th, 2013 by Eric Rowell
comments powered by Disqus