Heya, @RebeccaHirst further developed my PsychoPy/PsychoJS demo, and now I'm further developing that again. Got a little suggestion that might benefit the way the cover is set up...
I noticed that in the reference Gorilla implementation, the cover DIV is created on the first trial, and manipulated via show/hide (i.e. setting the CSS property display to none or block). This can be a bit laggy (see this excellent paper ;) and this one)
Got two suggestions (which are implemented in an updated PsychoJS demo):
- Create the DIV in advance
- Show/hide it by manipulating opacity
To ensure that clicks on the cover are still bubbled to any HTML elements below it, set this CSS property: pointer-events: none;.
Heya, @RebeccaHirst further developed my PsychoPy/PsychoJS demo, and now I'm further developing that again. Got a little suggestion that might benefit the way the cover is set up...
I noticed that in the reference Gorilla implementation, the cover DIV is created on the first trial, and manipulated via show/hide (i.e. setting the CSS property display to none or block). This can be a bit laggy (see this excellent paper ;) and this one)
Got two suggestions (which are implemented in an updated PsychoJS demo):
To ensure that clicks on the cover are still bubbled to any HTML elements below it, set this CSS property:
pointer-events: none;.