On Thu, Jan 1, 2009 at 2:14 AM, rockorgames <[email protected]> wrote:
> hello, im trying to this,
>
> a canvas and a button inside the canvas..
>
> and both the button and canvas has click events.. my problem is:
>
> if the user clicks the button, both the button click event and the
> canvas click event are firing.. is this something impossible to do ?

'click' is a bubbling event.

The three phases: (1) capture, (2) target, (3) bubble.

http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-flow

Manish

Reply via email to