HTML5 Canvas Cancel Event Bubble Propagation with KineticJS

To cancel event bubble propagation with KineticJS, we can set the cancelBubble property of the Event object to true.

Instructions: Click on the circle to observe that only the circle event binding is handled because the event propagation was canceled when the circle event was triggered, therefore preventing the event object from bubbling upwards.

Open in new window

Code Editor

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