Perspective mouse onClick not returning button value

You are interpreting the “onClick” event to be a generic event which encompasses both left and right clicks, when “onClick” should actually be understood as “left click”, whereas onContextMenu should be used for right-click events.

1 Like