Clickability of rotated images and polygons

Hi There,

Yes this is a tricky bug that should be fixed in the new release of PsychoPy it is this “rotatePoint” method (but it isn’t out yet unfortunately so you will need a temporary patch!) visual/ShapeStim: rotate vertices not sprite by thewhodidthis · Pull Request #282 · psychopy/psychojs · GitHub to implement the patch try the following:

  1. send your experiment to runner view
  2. select “debug” in runner
  3. that will add a “lib” folder to your directory - rename it “custom-lib”
  4. Add the rotatePoint method to your util.js file and in your visual module replace the corresponding lines of the ShapeStim class.
  5. when you sync your experiment to pavlovia set export html to manual so that you can change the first few lines of your javascript experiment to import from “custom-lib” instead of “lib” then sync.

It is a bit pernickety for now but will be fixed in the new release - if you need further help please do share the link to your github project ! :slight_smile:

Hope this helps,
Becca

2 Likes