Tjorven Lauchardt wrote:
I need some help! I have build up a DOM tree, containing plenty groups,
which always look that way:
If you aren't using CVS I suggest you try that I fixed a bug
relating to the coordinates of text elements in events. You can
download a nightly dump of CVS from Apache if you don't want to
learn how to use CVS.
<g>
<rect..../>
<text...>...</text>
</g>
I added an event listener to every group Element (addEventListener()).
The function handleEvent(evt) of this EventListener, I added, reads the
x- and y-coordinate of the mouseclick:
((MouseEvent)evt).getClientX();
((MouseEvent)evt).getClientY();
If I click on the rect-element, I get reasonable results out of this two
functions. If I click on the text-element, the results are way to low,
simply false.
How comes? Have I done something wrongly, or thought wrongly?
Thank you for your advice!
Regards,
Tjorven
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]