xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dao <dao.ho...@gmail.com>
Subject Re: event targets
Date Wed, 28 Apr 2010 06:01:16 GMT
great, it works fine.

On Tue, Apr 27, 2010 at 12:05 PM, <thomas.deweese@kodak.com> wrote:

> Hi Hodac,
>
> dao <dao.hodac@gmail.com> wrote on 04/27/2010 05:41:10 AM:
>
>
> > I try to make some elements of my SVG canvas clickable.
> > Unfortunately, they are under other elements that are either not
> > visible or semi transparent (they belong to other layers).
>
>
>    Any elements (or groups/layers) that you do not want to receive
> events should have the 'pointer-events' attribute set to 'none'.
>
> > I add a listener on my element:
> > EventTarget control = (EventTarget) getCanvas().getSVGDocument
> > ().getElementById(id);
> > control.addEventListener("click", new RemoteClickListener(id,
> > getRemoteEngine()), false);
> >
> > but the event is not catched. If I remove the elements that are over
> > the target element, it works.
>
>    Setting pointer-events to none is effectively the same as
> removing the elements for the purposes of delivering events.
>
> > and can I have more information about the useCapture boolean?
>
>         http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow
>
>


-- 
Dao Hodac

Mime
View raw message