From 613e6925672c39c7c47f9eb2da388357d24f21d0 Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Sat, 21 May 2016 16:53:54 -0400 Subject: [PATCH] fix bug from #233 --- jspsych.js | 2 +- tests&examples/fullscreen-mouse-bug.html | 31 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 tests&examples/fullscreen-mouse-bug.html diff --git a/jspsych.js b/jspsych.js index 0b29334f..fbd64aa5 100755 --- a/jspsych.js +++ b/jspsych.js @@ -615,7 +615,7 @@ var jsPsych = (function() { } $('#jspsych-fullscreen-btn').off('click'); DOM_target.html(''); - go(); + setTimeout(go, 1000); }); } } else { diff --git a/tests&examples/fullscreen-mouse-bug.html b/tests&examples/fullscreen-mouse-bug.html new file mode 100644 index 00000000..bedc42d4 --- /dev/null +++ b/tests&examples/fullscreen-mouse-bug.html @@ -0,0 +1,31 @@ + + + + + + + + + + + +
+ + + +