OSWeb welcome screen and full screen on mobile devices
Hi everyone,
Does anyone else has trouble making the full screen mode working on mobile devices (table, smartphone...)?The experiment goes full screen on the computer, but only from time to time on mobile devices (around 1 time for 10 tries). Is there any workaround ? I'm using OS 4.0 and OS Web 2.0.
Best, Silk--
EDIT: It seems I found the problem --> On the OS Web welcome screen, we have to click on the middle part to start the experiment. Both left and right parts seem to be blank spaces with no purpose. On a mobile device, assuming the experiment was coded to run in full screen, if I touch the middle part the experiment actually starts in windowed screen. But if I touch first one of the two blank spaces (left or right, it doesn't matter), then touching the middle part starts the experiment in full screen mode.
Any idea of why this is like that? Is that a feature or a bug?
Best, Silk--
Comments
New update: it seems it was a problem with OSWeb 2.0.0. I updated to version 2.0.1 and it works perfectly fine now.
I spotted a bug with the latest release (2.0.1) of OSWeb: if you double click or spam click the welcome screen, the experiment does not run as expected. I inspected the console and got errors suggesting that the whole experiment experiment is loaded at least twice (1 more for each iteration of a clicking event). So far I got errors indicating that
constvariables have already been declared like (1) and that multiple html elements share the same id (2) - which is not the case in my source code.I managed to reproduce the bug when the experiment is started directly from the OpenSesame user interface and from JATOS. This is unnoticable on quick loading experiments, but on slower ones it becomes a problem given that multiple clicks is not a so uncommon behaviour. You can try to double click the welcome screen of this experiment and see what happens: https://jatos-server.web.rug.nl/publix/30/start?batchId=32&generalMultiple
I don't know if it is already a known bug or not, @sebastiaan. Reverting to OSWeb 2.0 yields similar results unfortunately. One workaround is to disable the welcome screen, however this is not ideal to load medias and full screen won't happen for security reasons unless we ask for a user interaction (for anyone interested, this is super easy to do, check this: https://www.w3schools.com/howto/howto_js_fullscreen.asp).
Hi Silk,
Thanks for this report, very appreciated! Perhaps you can post it on github? Bug reports are better placed there:
Eduard