Hello Gabriel,

The following seems to work for me:

> // From quirksmode.org
> function isRightClick(e) {
>   if (!e) var e = window.event;
>   if (e.which) {
>     return (e.which == 3);
>   } else if (e.button) {
>     return (e.button == 2);
>   }
> 
>   return false;
> }
> 
> // Disable handling of right clicks
> Timeline.OriginalEventPainter.prototype._onClickDurationEventWithRightClick = 
> Timeline.OriginalEventPainter.prototype._onClickDurationEvent;
> 
> Timeline.OriginalEventPainter.prototype._onClickDurationEvent = 
> function(target, domEvt, evt) {
>   if (!isRightClick(domEvt)) {
>     this._onClickDurationEventWithRightClick(target, domEvt, evt);
>   }
> }

You'll have to repeat the second step for instant events and for other
painters if you use them.

Hope this helps,
Jonas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to