Update 3.3.10: Canvas and mouse coordinates not aligned
'Hi,It seems that in the new update, canvas coordinates and mouse coordinates are not aligned in the PsychoPy backend. Here's a little code snippet to draw a circle around your mouse when you click:
my_mouse = mouse(timeout=20000) my_mouse.show_cursor(show=True)#draw central fix dot my_canvas = Canvas() my_canvas.fixdot() my_canvas.show()# draw circle at mouse position button, (x,y), timestamp = my_mouse.get_click() my_canvas.circle(x, y, 20) my_canvas.show() clock.sleep(2000)
It seems the origin (0,0) is shifted to the top corner when using PsychoPy, but everything's fine with other backends.'
Comments
Hi @joshmanu ,
Thanks for reporting this, including a script to test. 👍️ I don't see this myself, actually. What operating system are you using, and does the operating have display scaling enabled?
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
No worries!
Actually Joost asked me to report it for him. He couldn't get on the forum or something.
Anyway:
Operating system: Mac OS Big Sur 11.4.
Scaling was not enabled. But he just checked with scaling enabled, but that doesn't make a difference.
Just chiming in to say I replicated this bug:
Macbook Air M1
Big Sur 11.5.2
@joshmanu and @Rrob Thanks!
Ping @robbertmijn This looks like it may be specific to the Mac OS ARM package. Can you reproduce it as well?
Check out SigmundAI.eu for our OpenSesame AI assistant!
@sebastiaan I reproduced it with the x64 version as well (albeit on the same computer using Rosseta2).
In doing so I found another minor issue. The download links and packages do not match. The link to the x64 package downloads a file labeled as "opensesame_3.3.10-py37-macos-arm-1" and the ARM link downloads a "...macOS-x64-1" package.
@Rrob Thanks for picking up the mismatch in the links! I fixed it.
Check out SigmundAI.eu for our OpenSesame AI assistant!