Right clicking pin toggles the pin and show context menu

Right clicking the pin button on the timeline both toggles the pin and show context menu.
I would expect right clicking not to toggle the pin.
It seem in Audacity for some reason both left and right click can press buttons but it makes it kind of not smart that right click would both toggle the button and show the context menu.

In other software i dont notice that right click presses buttons.

So would I, but does it do any harm? It looks like a very low priority bug to me.