List Info

Thread: Trouble with EventListeners




Trouble with EventListeners
user name
2006-04-29 18:05:58
Hi Archie,

   The problem is the use in the second 'group' (walls.1).
 Since this is 
drawn over the
'theNode' it recieves the pointer-events.  If you don't
want this to be 
sensitive to pointer-events
you can set: 'pointer-events="none"' on that
group.

Archie Cobbs <archiedellroad.org> wrote on 04/29/2006
01:48:03 PM:

> thomas.deweesekodak.com wrote:
> > Archie Cobbs <archiedellroad.org> wrote on
04/28/2006 05:17:39 PM:
> >> So I wrote a small test case (attached), but
now I can't
> >> get ANY events to be emitted!
> > 
> >         canvas = new JSVGCanvas(null, false,
false);
> > 
> >         The second argument is called
'eventsEnabled'
> > you passed false so _all_ events are disabled in
the canvas...
> 
> D'OH! Sorry for the stupidity.
> 
> But this is great because now I can include the REAL
test case.
> 
> Change the "false" to "true"
and try it on the attached SVG file.
> 
> I get pointer events from the body of the person, but
not from the
> big plus sign. Also, if you click on the outline of the
person
> (i.e., not within but on it) no events are generated
either.
> Only the pink fill seems to generate events.
> 
> This is what I'm trying to understand (and fix or
workaround).
> 
> Thanks!
> -Archie
> 
> 
____________________________________________________________
______________
> Archie Cobbs      *        CTO, Awarix        * http://www.awarix.com
> [attachment "clickbug.svg" deleted by
Thomas E. DeWeese/449433/EKC] 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
> For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

Trouble with EventListeners
user name
2006-04-29 19:11:50
thomas.deweesekodak.com wrote:
>    The problem is the use in the second 'group'
(walls.1).  Since this is 
> drawn over the
> 'theNode' it recieves the pointer-events.  If you
don't want this to be 
> sensitive to pointer-events
> you can set: 'pointer-events="none"' on
that group.

Ah, of course.. I didn't realize that I was drawing the
same thing twice.
Looks very obvious now that you've pointed it out.

Adding pointer-events="none" on the second
drawing works great.

Thanks!
-Archie

____________________________________________________________
______________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )