Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An immediately enabled html-screen is not notified correctly #278

Open
linusdm opened this issue May 20, 2019 · 0 comments
Open

An immediately enabled html-screen is not notified correctly #278

linusdm opened this issue May 20, 2019 · 0 comments

Comments

@linusdm
Copy link

linusdm commented May 20, 2019

An html-screen that is immediately enabled (with 'input_during_stimulus' option set to true for example) does not get notified through the "enabled()" function. Although an attempt is made by delaying and waiting to call enabled untill javascript has finished loading, this does not work correctly (tested with webengine, on Ubuntu).

The workaround now is to use the html-screen as an element of the screen used in the first trial. In this situation, the webview is only enabled after pressing "start", after javascript has finished loading. Coincidentally, this is the case in both examples using the html-screen. Or just don't use 'input_during_stimulus'.

Here is a minimal example that breaks: broken-html-screen-enabled.zip

code = QSL("setTimeout(function() { reset(); enabled(); }, 1000);");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant