You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by th...@kodak.com on 2007/05/03 11:43:44 UTC
Re: Interactors and DOM Events
Hi Urs,
> Thomas DeWeese wrote:
> > Correct, right now the rect is 'on top' of everything so all events
> > are delivered to it. If you make it the first child of the SVG
element,
> > then it will be 'below' everything and it will only receive events if
> > they 'fall through' all the other elements in the document.
Urs Reupke <ur...@gmx.net> wrote on 04/29/2007 12:49:54 PM:
> I did that, but things still aren't right.
> Some events get through: I can register mouseup/mousedown and click
> events, as well as mousemove.
> Mouseout and mouseover events, which are unfortunately crucial to the
> (current) workings of the document, are not triggered. (If everything
> else fails, I could rewrite both mouseup- and mousedown- as
> mousemove-listeners.)
You mean the mouse out/over events are never delivered? If you
remove the rect they suddenly are? That would be a serious bug,
can you reproduce it easily?
> I have tried inserting the rectangle both behind and after the <defs>
> element, even as the first element inside the main group, but the
problem
> persists. All listeners I spoke about are added to the <g>-elements
> containing the <use>-references to the polygon symbols via the Java API.
>
> Is there another trap I could have stumbled into?
When you say mouse out/over aren't delivered are they not
delivered for the background rect or also for the bundling groups?
> Thanks for your help, and thanks for clearing up the fill-issue. It
> works like a charm now.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org