Failed to parse as JS; code component for customised mouse response causing errors

Perfect - that has done the trick. However, I am now seeing the following:

Unfortunately we encountered an error:

  • TypeError: mouse.isPressedIn is not a function

Try to run the experiment again. If the error persists, contact the experiment designer.

Again, looking on other forums it looks like this has come up before, but using that function has been suggested as a solution too (RatingScale in online experiments) - is this something that should be working? My clickable stimuli are slightly overlapping at the moment, so perhaps that could be causing issues. Incidentally, if I want square image stimuli for an online experiment would ‘height’ be the best unit to use?

Thank you!