Replies: 1 comment 4 replies
-
Hi @zx23237, thanks very much for sharing these improvements! I've opened an issue so that we can track this problem and hopefully fix it soon: #1355. It'd be great if you wanted to submit a pull request with your suggested changes to the RDK plugin (but no problem if not). |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used RDK plugins these days, and I found that the fixation is not in the center of the window.
I found the reason and add some code when using the plugin.
Due to jsPsych CSS set the visible width to 95% of window‘s width, the default centerX of aperture used in the original RDK plugin, which is window.innerwidth/2, should be window.innerwidth*0.95/2 to locate both the aperture and fixation in the center of the window.
In fullscreen mode, as the centerY of aperture (window.innerheigh/2) was get as the experiment window opened, instead of the window of fullscreen, there might be slight deviation of centerY get from window.innerheigh/2. My solution is to refresh the width and height of the window at the beginning of each trial, by using on_start(trial) function .
The code I added for the trial of presenting RDK is as follow:
Beta Was this translation helpful? Give feedback.
All reactions