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
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