Buttons shift the object on the screen #2867
-
Hi all, I need my stimuli to appear at a specific location on the screen. To do this, I created 2 zones and described the position of the stimuli (dots), using div: // two working zones, from left and right from the center:
// the idea is that the first dot appears (memo), and after some time the second dot appears (probe) on the same or on the different position:
/// and when probe dot appears I want two buttons to appear (yes, no) for answering about position:
My problem is that my working zone is somehow shifted to the center when I use the button response, so that the second (probe) dot is not on the same position anymore! Where am I wrong? Could you help me? P.s.: I have attached the example how it looks like: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Caregrad, Do you have the full code sample lying around somewhere? I cannot seem to reproduce the phenomenon (using jsPsych 6.3), and for one thing the probes appear above the buttons in my case :) I have tried to replicate the gist of what you are trying to achieve (fixation cross with a dot, followed by a button trial with a dot). Maybe this helps to put you in another direction? styles:
For the jsPsych JavaScript code:
Note that for the html-keyboard-responses, I have added in a fixed height based on the height that the buttons get in the html-button-response trial. If these two don't match I noticed that the stimulus itself jumps between trials. |
Beta Was this translation helpful? Give feedback.
Hi Caregrad,
Do you have the full code sample lying around somewhere? I cannot seem to reproduce the phenomenon (using jsPsych 6.3), and for one thing the probes appear above the buttons in my case :)
I have tried to replicate the gist of what you are trying to achieve (fixation cross with a dot, followed by a button trial with a dot). Maybe this helps to put you in another direction?
styles:
For the jsPsych JavaScript code: