Issues with Regions of Interest, Text, and stretching when running in OSWeb
Hello,
I am trying to make a AXB on OpenSesame with speech stimuli and run it online through OSWeb.
Since the participants should make a choice between two options and I need to use the mouse response since some of the participants are expected to use their mobile phones, I have to use the roi function. Although a bit tricky, eventually I adapted some code found on this video by Lotje and made it compatible with OSWeb.
e.g. for region A
// Define ROI of A vars.start_x_A_roi = -480 vars.start_y_A_roi = -160 vars.end_x_A_roi = -160 vars.end_y_A_roi = 160 // Evaluate whether the mouse click falls within ROI of B circle if ( vars.cursor_x >= vars.start_x_A_roi & vars.cursor_x < vars.end_x_A_roi & vars.cursor_y >= vars.start_y_A_roi & vars.cursor_y < vars.end_y_A_roi ){ vars.A_clicked = "yes" } else { vars.A_clicked = "no" } console.log(vars.A_clicked)
However there are still some problems. For once it seems that when run in fullscreen (by ticking the relevant option on opensesame main app) everything gets stretched and the ROIs get all messed up.
I guess that might be avoidable by not running on fullscreen, but how do I know that this won't replicated in any of the respondent's device? Is any way to prevent this?
Finally another thing is the text that falls off the screen.
I've seen on some other discussion that this can be solved by line breaks. How do we achieve this?
I am also attaching my experiment for your reference. :)
Comments
OK to answer my own question, if you leave the full screen option unchecked there is no issue on a mobile device, running osweb on jatos at least.
For the text html tags seem to work.
E.g.
If we need to change line right here
<br> we use a break line tag.