If you want participants to use both the right and left mouse buttons online, you need to disable the browser context menu behaviour of the right click. To do this, put the following code Before Experiment in a JS code component.
document.addEventListener('contextmenu',event => event.preventDefault());
Thank you to @Luke for this solution.