Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SVG and right clicks

0 views
Skip to first unread message

Volker Gersabeck

unread,
Oct 12, 2009, 4:35:11 AM10/12/09
to dev-te...@lists.mozilla.org
Hi,

just a short question: is it possible to catch a right click on an SVG
element? The svg spec says that it should be possible and the evt.button
attribute should tell which button has been pressed. However, my onclick
event handler is not triggered for right clicks (just for left clicks) and I
get the default browser right-click menu...

I'm using Firefox 3.5.3 on Mac OS X 10.6.1

Thanks for your help.

Regards,
Volker

p.s. the mousedown is triggered for both left and right click...

--
RapidRabb.it is now pidoco.com

pidoco GmbH
Warschauer Straße 58a
10243 Berlin
Tel. +49 30 488 16 385
volker.g...@pidoco.com

www.pidoco.com
Accelerate your Prototyping!

pidoco GmbH
Sitz der Gesellschaft: Berlin
Registergericht Berlin-Charlottenburg, HRB 115010
Geschäftsführer: Philipp Huy

Jonathan Watt

unread,
Oct 12, 2009, 6:36:30 AM10/12/09
to
Hi Volker,

oncontextmenu is probably what you want.

Jonathan

On 2009-10-12 10:35 AM, Volker Gersabeck wrote:
> Hi,
>
> just a short question: is it possible to catch a right click on an SVG
> element? The svg spec says that it should be possible and the evt.button
> attribute should tell which button has been pressed. However, my onclick
> event handler is not triggered for right clicks (just for left clicks) and I
> get the default browser right-click menu...
>
> I'm using Firefox 3.5.3 on Mac OS X 10.6.1
>
> Thanks for your help.
>
> Regards,
> Volker
>
> p.s. the mousedown is triggered for both left and right click...
>
> --
> RapidRabb.it is now pidoco.com
>
> pidoco GmbH

> Warschauer Stra�e 58a


> 10243 Berlin
> Tel. +49 30 488 16 385
> volker.g...@pidoco.com
>
> www.pidoco.com
> Accelerate your Prototyping!
>
> pidoco GmbH
> Sitz der Gesellschaft: Berlin
> Registergericht Berlin-Charlottenburg, HRB 115010

> Gesch�ftsf�hrer: Philipp Huy

0 new messages